Skip to content

Instantly share code, notes, and snippets.

var str = (function(expectedLength){
var stateMap = {
'empty': ['⦧', '⦦'],
'⦧': ['⦦', '⦢'],
'⦦': ['⦧', '⦢'],
'⦢': ['⦣'],
'⦣': ['⦧']
};
var random_ = function(arr){
@ndrwhr
ndrwhr / bacon-and-eggs.js
Created September 19, 2014 18:54
My first JS project EVER (circa 2008). My god I have learned so much since then.
// Copyright (c) 2008 Andrew Hoyer
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify,
// merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@ndrwhr
ndrwhr / sudoku_seeds.txt
Created December 6, 2015 20:25
10,000, certified organic, sudoku seed puzzles. Made in Brooklyn, NY.
381562479527491638964873521293154867718326954645987312872645193436719285159238746
157864392942573816863912754429751683716328945385649127571496238234187569698235471
219764385347958621865132974436285197921473568578619432694527813182346759753891246
342587619985461237176293485268945371531876942497132568719324856853619724624758193
173854629682179534954263781315928476298746315746531892531697248469382157827415963
481596237523748169697231854735189642862475913914362785356827491179654328248913576
754689123162453798398127465413896257527314689689275314231548976876932541945761832
356197842184625937792834516678243159925781364413569278867312495539478621241956783
815764923732519846649823751276485139453971268981236574524698317368157492197342685
472953861159486732836271495917865324648132579523749186391527648785694213264318957