Skip to content

Instantly share code, notes, and snippets.

Thomas Wilburn thomaswilburn

Block or report user

Report or block thomaswilburn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thomaswilburn
thomaswilburn / CSVWriter.bas
Created Mar 5, 2018
Scripting Excel to write CSV from VBA
View CSVWriter.bas
' Class module CSVWriter
Private Excel As Object
Private sheet As Object
Private book As Object
Private rowNum As Integer
Private Sub Class_Initialize()
Set Excel = CreateObject("Excel.Application")
Set book = Excel.Workbooks.Add
Set sheet = book.ActiveSheet
@thomaswilburn
thomaswilburn / msg_metadata.bas
Created Mar 5, 2018
Metadata exporter for Outlook .msg files
View msg_metadata.bas
Sub GetMessages()
readdir "folder_location"
End Sub
Sub readdir(folderName As String)
Dim fs As Scripting.FileSystemObject
Dim folder As Scripting.folder
Dim file As Scripting.file
Dim message As Object
View wilkes.js
var request = require("request"),
fs = require("fs"),
cheerio = require("cheerio"),
json2csv = require("json2csv"),
url = "https://www.wilkescc.edu/about-us/directory/?letter=";
var alpha = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split("");
var all_emails = [],
first_names = [],
View svg-vanilla.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Generating SVG from vanilla JS</title>
</head>
<body>
<svg class="target-element"></svg>
<script>
@thomaswilburn
thomaswilburn / forth.js
Created Nov 2, 2017
Terrible Forth in JS
View forth.js
var testScript = `
[ double dup + ]
[ quadruple double double ]
1 2 + print
double print
quadruple print
2 jmp
3 +
4 +
if 255 print 0 then
@thomaswilburn
thomaswilburn / groovy.html
Last active Sep 12, 2017
Lava lamp metaballs
View groovy.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Groovy</title>
</head>
<body>
<canvas></canvas>
<style>
canvas {
@thomaswilburn
thomaswilburn / voronoi.html
Last active Sep 9, 2017
Voronoi diagram in WebGL
View voronoi.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Voronoi</title>
</head>
<body>
<canvas class="voronoi"></canvas>
<style>
canvas {
@thomaswilburn
thomaswilburn / csv.js
Created Jun 24, 2017
Minimal CSV module
View csv.js
var isNumber = /^-?\d[\d.,]*$/;
var cast = function(str) {
if (typeof str != "string") return str;
if (str == "true" || str == "false") {
return str == "true" ? true : false;
}
if (isNumber.test(str)) {
return parseFloat(str.replace(/,/g, ""));
}
@thomaswilburn
thomaswilburn / index.js
Created Jun 22, 2017
Archive that blogspot feed that you really like
View index.js
var async = require("async");
var cheerio = require("cheerio");
var FeedParser = require("feedparser");
var request = require("request");
var shell = require("shelljs");
var fs = require("fs");
var path = require("path");
var url = require("url");
var zlib = require("zlib");
@thomaswilburn
thomaswilburn / index.js
Created Apr 26, 2017
Methode to Markdown
View index.js
var minimist = require("minimist");
var sax = require("sax");
var fs = require("fs");
var args = minimist(process.argv);
var input = fs.createReadStream(args.i);
var parser = sax.createStream();
You can’t perform that action at this time.