Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@broadpeter
broadpeter / testjson2.json
Created September 22, 2018 13:59
us test 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@broadpeter
broadpeter / euro.json
Created September 24, 2018 16:13
eu nuts 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@broadpeter
broadpeter / euro2.json
Created September 24, 2018 16:19
euro test 2 20/1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@broadpeter
broadpeter / populationdensity.tsv
Created September 24, 2018 18:06
pop density
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 28 columns, instead of 20 in line 6.
unit,geo\time 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 2000 1999 1998 1997 1996 1995 1994 1993 1992 1991 1990
HAB_KM2,AL 105.2 b 105.5 105.5 : : : : : : : : : : : : : : : : : : : : : : : :
HAB_KM2,AL0 105.2 b 105.5 105.5 : : : : : : : : : : : : : : : : : : : : : : : :
HAB_KM2,AT 105.9 b 104.9 103.7 102.9 102.3 101.8 101.5 101.2 100.9 100.6 100.3 99.8 : 98.5 98.0 : 97.2 : 96.7 96.6 96.5 96.3 96.2 95.8 95.0 94.0 :
HAB_KM2,AT1 164.8 b 163.3 161.0 159.4 158.0 156.9 156.1 155.4 154.7 153.8 153.1 152.0 : 149.2 148.0 : 146.1 : 145.2 145.1 144.9 144.8 144.8 144.3 143.1 141.5 :
HAB_KM2,AT11 77.1 b 79.0 78.5 78.2 78.0 77.7 77.4 77.2 76.8 76.2 76.0 75.7 : 75.2 75.1 : 74.5 : 74.2 74.3 74.4 74.4 74.2 73.9 73.6 73.1 :
HAB_KM2,AT111 54.4 b 54.3 54.1 54.1 54.1 54.1 54.1 54.0 54.0 53.8 53.8 53.8 : 54.1 54.2 : 54.6 :
@broadpeter
broadpeter / popdensity
Created September 26, 2018 11:12
pop density nuts 3 2016
code,name,density
BE100,Arr. de Bruxelles-Capitale / Arr. van Brussel-Hoofdstad,"7,408.6"
BE211,Arr. Antwerpen,"1,082.2"
BE212,Arr. Mechelen,679.7
BE213,Arr. Turnhout,338.9
BE221,Arr. Hasselt,476.4
BE222,Arr. Maaseik,276.8
BE223,Arr. Tongeren,322.3
BE231,Arr. Aalst,605.0
BE232,Arr. Dendermonde,587.9
@broadpeter
broadpeter / monattempt.json
Last active April 24, 2019 21:00
Attempt at monuments json
{
"nodes": [
{"id": "PR", "group": 1},
{"id": "RVV", "group":2},
{"id": "LBL", "group": 2},
{"id": "GDL", "group": 3},
{"id": "MSR", "group": 3}
],
"links": [
{"source": "PR", "target": "RVV", "value": 46},
@broadpeter
broadpeter / electionmap.csv
Created December 7, 2019 14:42
Election map data
n q r a u e p name Winner17 Winner15 q2 r2 majority17
E14000530 Aldershot -3 -11 SE UKJ 72430 106193 Aldershot Con Con -2.5 -11 11,473
E14000531 Aldridge-Brownhills -3 -1 WM UKG 60215 77532 Aldridge-Brownhills Con Con -2.5 -1 14,307
E14000532 Altrincham and Sale West -7 3 NW UKD 71511 101457 Altrincham and Sale West Con Con -6.5 3 6,426
E14000533 Amber Valley 0 2 EM UKF 69510 90132 Amber Valley Con Con 0 2 8,300
E14000534 Arundel and South Downs 0 -15 SE UKJ 77242 100501 Arundel and South Downs Con Con 0.5 -15 23,883
E14000535 Ashfield 1 2 EM UKF 77091 106495 Ashfield Lab Lab 1 2 441
E14000536 Ashford 12 -13 SE UKJ 85177 122178 Ashford Con Con 12.5 -13 17,478
E14000537 Ashton-under-Lyne -5 6 NW UKD 68343 92289 Ashton-Under-Lyne Lab Lab -5 6 11,295
E14000538 Aylesbury 2 -6 SE UKJ 80315 121812 Aylesbury Con Con 2 -6 14,656
@broadpeter
broadpeter / electionmap.csv
Created December 7, 2019 14:42
Election map data
E14000530 Aldershot -3 -11 SE UKJ 72430 106193 Aldershot Con Con -2.5 -11 11,473
E14000531 Aldridge-Brownhills -3 -1 WM UKG 60215 77532 Aldridge-Brownhills Con Con -2.5 -1 14,307
E14000532 Altrincham and Sale West -7 3 NW UKD 71511 101457 Altrincham and Sale West Con Con -6.5 3 6,426
E14000533 Amber Valley 0 2 EM UKF 69510 90132 Amber Valley Con Con 0 2 8,300
E14000534 Arundel and South Downs 0 -15 SE UKJ 77242 100501 Arundel and South Downs Con Con 0.5 -15 23,883
E14000535 Ashfield 1 2 EM UKF 77091 106495 Ashfield Lab Lab 1 2 441
E14000536 Ashford 12 -13 SE UKJ 85177 122178 Ashford Con Con 12.5 -13 17,478
E14000537 Ashton-under-Lyne -5 6 NW UKD 68343 92289 Ashton-Under-Lyne Lab Lab -5 6 11,295
E14000538 Aylesbury 2 -6 SE UKJ 80315 121812 Aylesbury Con Con 2 -6 14,656
n q r a u e p name Winner17 Winner15 q2 r2 majority17 nameshort
E14000530 Aldershot -3 -11 SE UKJ 72430 106193 Aldershot Con Con -2.5 -11 11,473 Ald
E14000531 Aldridge-Brownhills -3 -1 WM UKG 60215 77532 Aldridge-Brownhills Con Con -2.5 -1 14,307 Ald
E14000532 Altrincham and Sale West -7 3 NW UKD 71511 101457 Altrincham and Sale West Con Con -6.5 3 6,426 Alt
E14000533 Amber Valley 0 2 EM UKF 69510 90132 Amber Valley Con Con 0 2 8,300 Amb
E14000534 Arundel and South Downs 0 -15 SE UKJ 77242 100501 Arundel and South Downs Con Con 0.5 -15 23,883 Aru
E14000535 Ashfield 1 2 EM UKF 77091 106495 Ashfield Lab Lab 1 2 441 Ash
E14000536 Ashford 12 -13 SE UKJ 85177 122178 Ashford Con Con 12.5 -13 17,478 Ash
E14000537 Ashton-under-Lyne -5 6 NW UKD 68343 92289 Ashton-Under-Lyne Lab Lab -5 6 11,295 Ash
E14000538 Aylesbury 2 -6 SE UKJ 80315 121812 Aylesbury Con Con 2 -6 14,656 Ayl