View gist:341d0c06b849270629bd2cdd364678a1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just say something like this: | |
"Hi I'm <name> and I'm one of McCain's constituents in <city>. | |
My zip code is <zipcode>. | |
I urge McCain to vote against Sessions as Attorney General. | |
Thank you for your time." | |
Here's the number for McCain: 602-952-2410 | |
Here's the number for Flake: 602-840-1891 |
View answer-check.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector(".puzzle-solution").innerHTML.trim() === "YOURSOLNTOCHECK" |
View keyboard.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bacon = require 'Bacon' | |
_ = require 'underscore' | |
$ = require 'jquery' | |
# Reference: http://unixpapa.com/js/key.html | |
# IE = IE keycodes (webkit, IE) | |
# MZ = Mozilla keycodes (gecko) | |
# Opera = Opera keycodes (opera) | |
# US locale specific. About as well as can be done without browser detection. |
View boggle-impossible.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import datrie | |
import itertools | |
import math | |
import random | |
import string | |
Spot = collections.namedtuple('Spot', ['x', 'y']) |
View gist:709354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
n = 100 | |
sets = [set([person_id]) for person_id in range(0, n)] | |
person_id_indicated_by_light = None | |
for day in range(0, 1000000): | |
set = sets[random.randint(0, n-1)] |