Skip to content

Instantly share code, notes, and snippets.

@numberMumbler
numberMumbler / hidden_eggs_puzzle.py
Created March 6, 2017 17:27
Solution to the Hidden Easter Egg puzzle
_result_template = 'vertical: {}; horizontal: {}; tie: {} (board: {} x {})'
def search(board, egg0, egg1, is_vertical):
x = 0 if is_vertical else 1
y = (x + 1) % 2
found_egg = find_egg(egg0, egg1, is_vertical)
return board[x] * found_egg[y] + found_egg[x] + 1
@numberMumbler
numberMumbler / keybase.md
Last active March 23, 2020 16:52
keybase.md

Keybase proof

I hereby claim:

  • I am numbermumbler on github.
  • I am numbermumbler (https://keybase.io/numbermumbler) on keybase.
  • I have a public key whose fingerprint is 0B95 5D39 43A5 748E 0A94 7A64 9F3B 563E 46D6 03CF

To claim this, I am signing this object:

@numberMumbler
numberMumbler / canvas-sandbox.html
Last active January 2, 2016 18:09
Webpage to try out different methods of drawing scaled/manipulated pixels on canvas based on those from a different canvas. Designed to make it easy to move tests into jsperf.com
<!DOCTYPE html>
<html><head>
<title>Canvas Drawing Sandbox</title>
<script type="text/javascript">
function runTest(testFunction) {
testSetup();
if(testFunction !== undefined) {
// async to allow results of testSetup() to render
setTimeout(testFunction, 0);
}