Skip to content

Instantly share code, notes, and snippets.

View espinielli's full-sized avatar

Enrico Spinielli espinielli

View GitHub Profile
@espinielli
espinielli / P_4_3_1_01.js
Last active January 31, 2019 10:53
Pixel Mapping in p5.js (Generative Design P_4_3_1_01)
// import processing.pdf.*;
// import java.util.Calendar;
// boolean savePDF = false;
var img;
var drawMode = 1;
function preload() {
img = loadImage("pic.png");
}
@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
@espinielli
espinielli / README.md
Last active March 4, 2016 10:34
Vega 2.0 vertical bar plot

The implementation of the (vertical) bar plot as from the Vega tutorial.

@espinielli
espinielli / README.md
Last active March 4, 2016 10:39
Vega 2.0 horizontal bar plot

The implementation of the horizontal version of the Vega tutorial bar plot.

@espinielli
espinielli / README.md
Last active March 4, 2016 10:40
IFR traffic with Vega 2.0

Simple line plot for IFR traffic using Vega 2.0.