I hereby claim:
- I am stillinbeta on github.
- I am stillinbeta (https://keybase.io/stillinbeta) on keybase.
- I have a public key whose fingerprint is 01F8 E3CC DC01 BF80 6F1F 0D97 45DB 0753 237A CF9E
To claim this, I am signing this object:
A Game of Thrones - George RR Martin | |
The Girl with the Dragon Tattoo - Steig Larson | |
The Girl who Played With Fire | |
The Girl who kicked the hornet's nest | |
American Gods - Neil Gaiman | |
The City and the City - China Mieville | |
The Hunger Games - Suzanne Collins | |
Bossypants - Tina Fey |
import re | |
import json | |
from xml import sax | |
reg = re.compile(r'\[\[(?:[\w ]+?\|)?([\w ]+?)\]\]') | |
datafile = '/path/to/wikipedia/data' | |
limit = 500 | |
class PageHandler(sax.handler.ContentHandler): | |
def __init__(self): |
#!/usr/bin/env python3 | |
import urllib.request | |
from urllib.error import URLError | |
import json | |
def get_json(url): | |
result_bytes = urllib.request.urlopen(url) | |
return json.loads(str(result_bytes.read(),'utf-8')) | |
import itertools | |
import os | |
import os.path | |
import sys | |
from twitter import Twitter, oauth_dance, Twitter, OAuth, read_token_file | |
import settings |
class Set t where | |
new :: t a | |
insert :: Eq a => Ord a => t a -> a -> t a | |
delete :: Eq a => Ord a => t a -> a -> t a | |
contains :: Eq a => Ord a => t a -> a -> Bool | |
items :: t a -> [a] | |
data ListSet a = ListSet [a] deriving Show | |
#include <stdio.h> | |
#include <unistd.h> | |
void | |
twiddle(void) | |
{ | |
static int state; | |
static char states[] = { '|', '/', '-', '\\' }; | |
state++; |
I hereby claim:
To claim this, I am signing this object:
/*************** | |
* pointers.js * | |
*************** | |
* | |
* You! How are you still alive? | |
* | |
* Well, no matter. Good luck getting through this | |
* maze of rooms - you'll never see me or the Algorithm again! | |
*/ |
# Makes new shells open to the last place you cd'd | |
function cd { | |
readlink -f $1 > /tmp/.zsh-last-cd 2>/dev/null | |
builtin cd $@ | |
} | |
if [[ -f /tmp/.zsh-last-cd && -d "$(cat /tmp/.zsh-last-cd)" ]] ; then | |
cd $(cat /tmp/.zsh-last-cd) | |
fi |
root = exports ? this | |
log.enableAll() | |
Rearview = new Backbone.Marionette.Application() | |
root.Rearview = Rearview | |
# Interpolating to zero can have bad side-effects: | |
# https://github.com/mbostock/d3/wiki/Transitions#wiki-d3_interpolateNumber | |
Rearview.zeroish = 1e-6 |