Skip to content

Instantly share code, notes, and snippets.

@nickdavies
nickdavies / runners.py
Created June 11, 2019 17:55
Python 3.6 version of asyncio.runners
"""
Backport of the asyncio.runners module from Python 3.7.
"""
# Source:
# https://github.com/python/cpython/blob/a4afcdfa55ddffa4b9ae3b0cf101628c7bff4102/Lib/asyncio/runners.py
# Modifications:
# * removed relative imports of .coroutines, .events, .tasks
# * replaced `coroutines`, `events`, `tasks` with `asyncio`.
# * replaced `tasks.all_tasks` with `asyncio.Task.all_tasks` because it is
import requests
import time
import sys
URL = "https://api.github.com/search/users"
MAX_PAGE = 100
class GithubQuery(object):
results = {}
@nickdavies
nickdavies / gist:9795933
Created March 26, 2014 23:16
keybase.md
### Keybase proof
I hereby claim:
* I am nickdavies on github.
* I am nickdavies (https://keybase.io/nickdavies) on keybase.
* I have a public key whose fingerprint is 346A A865 7D22 2B04 604A 63A3 5F0F 5B6D 38FE 70FC
To claim this, I am signing this object: