Skip to content

Instantly share code, notes, and snippets.

View espinielli's full-sized avatar

Enrico Spinielli espinielli

View GitHub Profile
@espinielli
espinielli / README.md
Last active August 29, 2015 14:27
Vega 2.0 events and marks

Learning Vega 2.0: events and marks

Capture mousemove and print mouse coordinates.

@espinielli
espinielli / README.md
Last active August 29, 2015 14:27
Vega 2.0 interact with DOM events

Capture events from input elements outside the visualization. Similar to what is done at min 3:19 in the Reactive Vega video

@espinielli
espinielli / README.md
Created August 18, 2015 21:07
Number of IFR flights in EU with D3
@espinielli
espinielli / drops.json
Created May 31, 2012 14:34
Mapping the first day of the Blitz bombs with d3.js and Google Maps
[{"damage": "Grocers: 3x2 roof damaged", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 1, "time": "0:08"}, {"damage": "Bakers: 3x2 roof damaged", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 2, "time": "0:10"}, {"damage": "front room on 1st floor and contents slightly damaged. 3x2 rood damage", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 3, "time": "0:15"}, {"damage": "10x6 roof damage", "location": {"lat"
@espinielli
espinielli / drops.json
Created June 2, 2012 10:12
The first day of the Blitz animated (somehow)
[{"damage": "Grocers: 3x2 roof damaged", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 1, "time": "0:08"}, {"damage": "Bakers: 3x2 roof damaged", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 2, "time": "0:10"}, {"damage": "front room on 1st floor and contents slightly damaged. 3x2 rood damage", "location": {"lat": 51.4927867208977, "lon": -0.0718224107752507, "display_name": "Southwark Park Road, St. George's Estate, Bermondsey, London Borough of Southwark, Greater London, London, England, SE16 3QN, United Kingdom"}, "type": "IB", "order": 3, "time": "0:15"}, {"damage": "10x6 roof damage", "location": {"lat"
@espinielli
espinielli / MegamapMaker-prep9.pl
Created December 12, 2012 17:06
Megamap creation file from Mary Jo Graça: Chill-Keyes map projection
#! /usr/bin/perl -w
# 2012-03-15 This is program "MegamapMaker-prep9" by Mary Jo Graça
# BLOCK (1) : read file of longitude,latitude coordinates and convert to x,y coordinates
$Skip[1] = "YES";
# BLOCK (2): prepare graticule file of 15°, with joined Antarctica, for Duncan
$Skip[2] = "YES";
# BLOCK (3): prepare graticule file of 5°, with joined Antarctica, for Duncan
$Skip[3] = "YES";
# BLOCK (4): Prepare octant boundaries, with joined Antarctica, for Duncan
@espinielli
espinielli / README.md
Last active October 28, 2015 21:16
Vega 2.0 jobs example with filters
@espinielli
espinielli / README.md
Last active November 8, 2015 12:56
D3 keybinding with jwerty

Perform keyboard combinations binding using Keith Cirkel's jwerty in D3.js.

In this gist, use arrow keys to translate and ⇧+↑ (Shift + arrow-up) / ⇧+↓ (Shift + arrow-down) to rotate counterclockwise/clockwise.

Inspired by Tom MacWright's gist and Ian Johnson's waves.

@espinielli
espinielli / index.html
Last active December 11, 2015 01:38 — forked from mbostock/.block
Polar clock
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#clock {
position: relative;
background: #222;
width: 960px;
height: 800px;
}
@espinielli
espinielli / Another R script for plotting ship paths.md
Last active December 11, 2015 17:30 — forked from bmschmidt/Plotting Ship Paths
Plotting (historical) ship paths