Skip to content

Instantly share code, notes, and snippets.

View gist:341d0c06b849270629bd2cdd364678a1
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
document.querySelector(".puzzle-solution").innerHTML.trim() === "YOURSOLNTOCHECK"
@RoboTeddy
RoboTeddy / keyboard.coffee
Last active Aug 29, 2015
Bacon.js keyboard
View keyboard.coffee
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
import collections
import datrie
import itertools
import math
import random
import string
Spot = collections.namedtuple('Spot', ['x', 'y'])
View gist:709354
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)]