Skip to content

Instantly share code, notes, and snippets.

View dennythecoder's full-sized avatar

Denny dennythecoder

View GitHub Profile
function JSAssert_print() {
var win=window.open("","_blank","width=400,height=300,toolbar=no,scrollbars=yes");
win.document.writeln("<TITLE>JSUnit</TITLE><PRE>");
win.document.writeln(""+this.count+" test(s): "+this.done+" ok, "+this.failed+" failed\n---");
win.document.writeln(this.text);
win.document.close();
}
function JSAssert_add(f, t) {
this.count++;
@dennythecoder
dennythecoder / script.js
Last active May 24, 2018 00:40
PDFJS Wrapper to handle DD Form 2875.
/*
Usage:
const file = document.getElementById('a_file').files[0];
const fh = new FileHandler(file);
console.log(fh.fields.name, fh.fields.email);
*/