Skip to content

Instantly share code, notes, and snippets.

Avatar

Enrico Spinielli espinielli

View GitHub Profile
@espinielli
espinielli / .gitignore
Last active Aug 29, 2015
Eurocontrol member states
View .gitignore
espinielli
mbostock
@espinielli
espinielli / Readme.md
Last active Aug 29, 2015
Cahill-Keyes blues
View Readme.md

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].

View osx-for-hackers.sh
# 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 Aug 29, 2015
Face Subdivision
View _.md
@espinielli
espinielli / README.md
Last active Aug 29, 2015 — forked from mbostock/.block
Polygons merge with a hole.
View README.md
@espinielli
espinielli / Readme.md
Created Mar 23, 2015
Funny ADS-B positions: zig-zag
View Readme.md

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 Aug 29, 2015
Bullet charts in dc.js
View README.md

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 Aug 29, 2015 — forked from jasondavies/README.md
bug when switching to horizontal
View README.md

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 Aug 29, 2015 — forked from jasondavies/README.md
Switch to horizontal bug: fixed
View README.md
@espinielli
espinielli / README.md
Last active Aug 29, 2015
PRU (interactive) logo
View README.md