Skip to content

Instantly share code, notes, and snippets.

@mcarans
mcarans / gist:ccc0105f7b1550d62a3c0fcfd931b384
Last active May 9, 2019 15:43
showcases with no datasets

Showcase https://data.humdata.org/showcase/aerial-survey-tc-idai-24-29-mar-map (b79d3fa0-599b-4702-9152-39df2227e100) created on 2019-04-02, modified on 2019-04-02 has no datasets! Created by IM IFRC (imifrc im@ifrc.org) Showcase https://data.humdata.org/showcase/ethiopia-humanitarian-needs-overview-hno-summary-data-for-2019 (a2de0c6c-f33f-4652-938e-4aef126b46e8) created on 2019-03-18, modified on 2019-03-18 has no datasets! Created by HDX - Joseph Marindi (marindi marindijm@gmail.com) Showcase https://data.humdata.org/showcase/1-humanitarian-response-plan-nigeria-2019 (518b9d75-6466-4853-8e0f-26ca30669a0e) created on 2019-02-22, modified on 2019-02-22 has no datasets! Created by Ahmadou DICKO (dickoah dicko.ahmadou@gmail.com) Showcase https://data.humdata.org/showcase/southern-africa-humanitarian-dashboard-jan2019 (834a5f31-f517-498d-bed3-f920d292e2f6) created on 2019-02-08, modified on 2019-02-08 has no datasets! Created by Akshay Sinha (asinha82 asinha@unicef.org) Showcase https://data.humdata.org/showcase

@mcarans
mcarans / ratelimiter.py
Last active August 13, 2018 07:46
ratelimiter for aiohttp (limit per timeframe per host)
import asyncio
import time
from urllib.parse import urlsplit
class RateLimiter:
RATE = 10
MAX_TOKENS = 10
def __init__(self, session):