Skip to content

Instantly share code, notes, and snippets.

View espinielli's full-sized avatar

Enrico Spinielli espinielli

View GitHub Profile
@espinielli
espinielli / .gitignore
Last active August 29, 2015 13:59
Eurocontrol member states
espinielli
mbostock
@espinielli
espinielli / Readme.md
Last active August 29, 2015 14:03
Cahill-Keyes blues

A Cahill-Keyes map projection with a blueish color scheme to mimic the background of [The Daily Show][tds]. Requested by Gene in order to propose it to Jon Stewart's show.

This map is set with a width of 2000 pixels, but can be changed to a bigger one (it will just take more time and space when converting it).

In order to save a png image, follow [Mike Bostock's instructions][save].

# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@espinielli
espinielli / _.md
Last active August 29, 2015 14:10
Face Subdivision
@espinielli
espinielli / README.md
Last active August 29, 2015 14:16 — forked from mbostock/.block
Polygons merge with a hole.
@espinielli
espinielli / Readme.md
Created March 23, 2015 17:48
Funny ADS-B positions: zig-zag

Take flight ASL334 on 16th Feb 2015 (and sort the position reports by timestamp)

echo "lat,lon,clock,type" > data.csv
cat adsb.json | \
jq -r 'select(.ident=="ASL334" and .clock >= "1424041200" and .clock < "1424127600")|[.lat,.lon,.clock,.updateType]|join(",")' | \
sort --key=3n -t, >> data.csv

click on the markers to get tracks details: spot the zig-zag at around track 60!

@espinielli
espinielli / README.md
Last active August 29, 2015 14:19 — forked from jasondavies/README.md
bug when switching to horizontal

When switching to horizontal the axis is not correctly positioned: bug.

A demonstration of D3’s vertically-oriented bullet charts, based on this example.

@espinielli
espinielli / README.md
Last active August 29, 2015 14:19 — forked from jasondavies/README.md
Switch to horizontal bug: fixed
@espinielli
espinielli / README.md
Last active August 29, 2015 14:19
Bullet charts in dc.js

This is an example of bullet chars in dc.js. A pull request for inclusion of the bullet chart has been submitted, in the meantime I use a special built of dc.js.

See my post about it.

@espinielli
espinielli / README.md
Last active August 29, 2015 14:22
PRU (interactive) logo