Skip to content

Instantly share code, notes, and snippets.

@marqueymarc
marqueymarc / jasmine emulation.html
Created July 7, 2016 04:59
simple jasmine/mocha inline
<j20-script>
j20Init(function () {
'use strict';
var bef;
function beforeEach(f) {
bef = f;
}
function it(str, f) {
@marqueymarc
marqueymarc / sedoku-verifier.js
Last active April 5, 2016 05:50
A sedoku verifier
//sedoku
var testrowg = "123456789";
var testrowbad = "123446789";
function shouldEq(testid, a, b) { if (a != b) console.log(testid + " failed");}
shouldEq("goodrow", sedoku1(testrowg), true);
shouldEq("badrow", sedoku1(testrowbad), false);
var testg = "154873296386592714729641835863725149975314628412968357631457982598236471247189563";
var testb = "158473296386592714729641835863725149972314628412968357631457982598236471247189563";