I hereby claim:
- I am ry4an on github.
- I am ry4an (https://keybase.io/ry4an) on keybase.
- I have a public key whose fingerprint is 9F62 F388 0680 DB9C 199C E813 D2F8 E7C5 03B7 1364
To claim this, I am signing this object:
class ParanoidContextProxy(object): | |
""" | |
This is a poor-man's proxy for a context instance. | |
Make sure template rendering stops immediately on a KeyError. | |
""" | |
def __init__(self, context): | |
self.context = context | |
def __getitem__(self, key): |
#!/bin/sh | |
# | |
if git diff --cached | grep --quiet 'KILL ME' ; then | |
echo FORGOT TO REMOVE KILL ME | |
exit 1 | |
fi |
curl 'http://api.swiftype.com/api/v1/public/engines/suggest.json?callback=jQuery17202572345747612417_1392736179267&q=lov&engine_key=CywzyscJAHKCwrezfzpN&search_fields%5Bactor%5D%5B%5D=name&search_fields%5Bactor%5D%5B%5D=alt_names&search_fields%5Btag%5D%5B%5D=title&search_fields%5Bseries%5D%5B%5D=title%5E4&search_fields%5Bseries%5D%5B%5D=alt_title%5E2&search_fields%5Bseries%5D%5B%5D=genre&search_fields%5Bseries%5D%5B%5D=tags&search_fields%5Bseries%5D%5B%5D=description&search_fields%5Bseries%5D%5B%5D=description_short&search_fields%5Bseries%5D%5B%5D=description_flipper_es&search_fields%5Bseries%5D%5B%5D=description_es&fetch_fields%5Bactor%5D%5B%5D=external_id&fetch_fields%5Bactor%5D%5B%5D=url&fetch_fields%5Bactor%5D%5B%5D=name&fetch_fields%5Bactor%5D%5B%5D=thumbnail&fetch_fields%5Bactor%5D%5B%5D=series_count&fetch_fields%5Btag%5D%5B%5D=external_id&fetch_fields%5Btag%5D%5B%5D=url&fetch_fields%5Btag%5D%5B%5D=title&fetch_fields%5Bseries%5D%5B%5D=external_id&fetch_fields%5Bseries%5D%5B%5D=url&fetch_fields%5Bseries% |
#!/usr/bin/python | |
import json | |
import pytz | |
import urllib2 | |
import datetime | |
import dateutil.parser | |
import re | |
import sys | |
import humanize |
I hereby claim:
To claim this, I am signing this object:
foobar</div>
> quote in code block
quote outside code block
from collections import defaultdict, namedtuple | |
class Session: | |
def __init__(self): | |
self.seconds = 0 | |
self.session_id = None | |
self.events_by_type = defaultdict(int) | |
def add_event(self, event): | |
if self.session_id and event.session_id != self.session_id: |