I hereby claim:
- I am wtolson on github.
- I am zombiefeynman (https://keybase.io/zombiefeynman) on keybase.
- I have a public key ASBWQAgOH5VC_8bA2CltnOPwVZLIMRUkbXvwr48X3DsTXAo
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
from __future__ import annotations | |
from collections import defaultdict | |
from collections.abc import Iterator, MutableMapping | |
from typing import Iterable, TypeGuard, TypeVar, overload | |
T = TypeVar("T") |
I hereby claim:
To claim this, I am signing this object:
import gnsq | |
class Worker(object): | |
def __init__(self, **config): | |
self.config = config | |
def handle_message(self, reader, message): | |
# Do something with config and message | |
pass |
import sys | |
from collections import Mapping, MutableMapping | |
from weakref import proxy | |
PY3 = sys.version_info[0] == 3 | |
_dict_setitem = dict.__setitem__ | |
_dict_getitem = dict.__getitem__ | |
_dict_delitem = dict.__delitem__ |
var trevor = { | |
"contact": | |
{ | |
"email": "trevor@heytrevor.com", | |
"twitter": "@ZombieFeynman", | |
"google+": "heytrevor.com/+", | |
"github": "https://github.com/wtolson" | |
}, |
import sys | |
import requests | |
def get_image(x, xdir, y, ydir): | |
name = '%s%s%s%s.png' % (x, xdir, y, ydir) | |
print 'Getting %s...' % name, | |
sys.stdout.flush() | |
url = 'http://imgs.xkcd.com/clickdrag/' + name | |
resp = requests.get(url) |