Skip to content

Instantly share code, notes, and snippets.

@theredstapler
theredstapler / base64
Created January 24, 2016 13:36
Base64 encoding with VBA
Sub Button1_Click()
Dim objXML As MSXML2.DOMDocument
Dim objNode As MSXML2.IXMLDOMElement
Dim arrData() As Byte
arrData = StrConv(Cells(1, 1), vbFromUnicode)
Set objXML = New MSXML2.DOMDocument
Set objNode = objXML.createElement("b64")
Sub test()
Call testAuthen
End Sub
Private Function UserPassBase64() As String
Dim objXML As MSXML2.DOMDocument
Dim objNode As MSXML2.IXMLDOMElement
Dim arrData() As Byte
<!DOCTYPE html>
<head>
<title>Test Video.js</title>
<link href="video-js.min.css" rel="stylesheet">
<style>
body {
background-color:#000000;
}
#testdiv {
background-color:#ffffff;
<!DOCTYPE html>
<head>
<title>Test Video.js</title>
<link href="video-js.min.css" rel="stylesheet">
<script src="video.min.js"></script>
</head>
<body>
<div id="testdiv"></div>
<video class="video-js vjs-default-skin" width="1280" height="720%" controls data-setup='{}'>
<source src="testvideo1.mp4" type='video/mp4'>
<html>
<head>
<script src="chart.js"></script>
</head>
<body>
<canvas id="mycanvas" width="400" height="400"></canvas>
<script>
var chrt = document.getElementById("mycanvas").getContext("2d");
<!doctype html>
<html>
<head>
<style>
body{
background-color: #dfdfdf;
}
.box {
display: block;
width: 800px;
@theredstapler
theredstapler / impress.js basic tutorial
Last active October 16, 2022 12:20
Source code of impress.js Tutorial by Red Stapler. View Tutorial at: https://redstapler.co/tutorials/make-presentation-impress-js/
<!doctype html>
<html>
<head>
<style>
body{
background-color: #dfdfdf;
}
.box {
display: block;
width: 800px;
<!doctype html>
<html>
<head>
<style>
body{
background-color: #dfdfdf;
}
.box {
display: block;
width: 800px;
<!doctype html>
<html>
<head>
<style>
body{
background-color: #dfdfdf;
}
.box {
display: block;
width: 800px;
<!doctype>
<html>
<head>
</head>
<body>
<?php
require_once "Classes/PHPExcel.php";
$tmpfname = "test.xlsx";