Skip to content

Instantly share code, notes, and snippets.

@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";

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.