I hereby claim:
- I am stringertheory on github.
- I am mstringer (https://keybase.io/mstringer) on keybase.
- I have a public key whose fingerprint is 866E D9E9 FDEF 47FB 77AB D1AC 7B91 DA3D 7B5F 643A
To claim this, I am signing this object:
| import re | |
| import scrubadub | |
| class UrlFilth(scrubadub.filth.url.UrlFilth): | |
| regex = re.compile(r''' | |
| (?P<protocol> | |
| (https?:\/\/(www\.)?|www\.)? # protocol http://, etc | |
| )(?P<domain> |
| import os | |
| import tweepy | |
| auth = tweepy.OAuthHandler(os.getenv('TW_CKEY'), os.getenv('TW_CSECRET')) | |
| auth.set_access_token(os.getenv('TW_ATOKEN'), os.getenv('TW_ASECRET')) | |
| api = tweepy.API(auth) | |
| for tweet in api.user_timeline(screen_name='cookywook', count=40): |
| """Playing around with the Prisoner Hat Riddle (http://bit.ly/2hmNSav) | |
| """ | |
| import random | |
| def make_hats(n_people): | |
| """Return a list of random black or white hats.""" | |
| return [random.randint(0, 1) for _ in range(n_people)] |
| """Convert a google doc to markdown with all of the cruft removed. | |
| """ | |
| import hashlib | |
| import imghdr | |
| import shutil | |
| import subprocess | |
| import sys | |
| import urllib | |
| import urlparse |
| """Template for the design process.""" | |
| def empathize(people): | |
| raise NotImplementedError | |
| def define(people, needs): | |
| raise NotImplementedError |
| import sys | |
| import codecs | |
| from proselint.command_line import lint | |
| import termcolor | |
| WINDOW = 40 | |
| FORE = 'white' | |
| BACK = 'on_blue' |
| """Script to test a few small versions of combinatorics problem. | |
| """ | |
| from sys import stderr | |
| from collections import Counter | |
| from itertools import permutations | |
| from math import factorial | |
| from time import time | |
| def answer(n, g): |
| #!/usr/bin/env python | |
| raise Exception('haters gonna hate') |
| # Call virtualenvwrapper's "workon" if .venv exists. This is modified from-- | |
| # http://justinlilly.com/python/virtualenv_wrapper_helper.html | |
| # which is linked from-- | |
| # http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory | |
| check_virtualenv() { | |
| if [ -e .venv ]; then | |
| env=`cat .venv` | |
| if [ "$env" != "${VIRTUAL_ENV##*/}" ]; then | |
| echo "Found .venv in directory. Calling: workon ${env}" | |
| workon $env |
I hereby claim:
To claim this, I am signing this object: