Skip to content

Instantly share code, notes, and snippets.

@benib
benib / orakel.js
Created May 18, 2016 15:41
NZZ Euro 2016 Orakel Algorithmus
/*
NZZ Euro 2016 Orakel
http://nzz.ch/-ld.17757
The algorithm
this works like this:
@yanofsky
yanofsky / Makefile
Last active May 4, 2019 06:45
This is workflow for downloading, processing, and mosaicing Landsat scenes, as a Makefile
# lansatutil directory
LANDSAT = ~/landsat
# scenes to target
LANDSAT_IDS = \
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
LC81210452014281LGN00
import asyncio
import aiohttp
import os
import random
import re
import sys
import traceback
from io import StringIO
from lxml.html import parse, make_links_absolute
from lxml.cssselect import CSSSelector
@fitnr
fitnr / presidential_17.csv
Created April 26, 2017 19:44
Résultats de le 1er tour de la présidentielle 2017, a niveau de commune / Commune-level results of the first round of the 2017 French presidential election
We can't make this file beautiful and searchable because it's too large.
commune,votes,le_pen,macron,fillon,melenchon,dupont_aig,hamon,asselineau,arthaud,poutou,cheminade,lassalle
01001,495,126,119,110,59,34,29,6,4,4,2,2
01002,176,48,37,34,33,6,13,1,2,2,0,0
01004,6452,1667,1332,1084,1412,346,344,71,40,91,5,60
01005,933,306,191,197,126,45,37,10,5,10,0,6
01006,77,18,15,14,19,4,3,0,1,2,0,1
01007,1548,458,348,233,296,80,82,11,9,17,1,13
01008,473,135,95,84,89,28,23,2,3,8,3,3
01009,209,40,55,44,39,6,8,6,0,3,0,8
01010,589,207,110,83,103,33,20,10,3,5,1,14
@enjalot
enjalot / ndjson.md
Last active December 15, 2021 04:10
Tips for processing Quick, Draw! data with ndjson-cli

Quick, Draw! ndjson data

The Quick, Draw! dataset uses ndjson as one of the formats to store its millions of drawings.

We can use the ndjons-cli utility to quickly create interesting subsets of this dataset.

The drawings (stroke data and associated metadata) are stored as one JSON object per line. e.g.:

{