Skip to content

Instantly share code, notes, and snippets.

@e-n-f
e-n-f / Roads by date
Created May 24, 2013 05:26
Total OSM highway=* road length (in feet) by date
2005-05-03 2282.407
2005-05-14 2370.677
2005-05-21 3064.181
2005-05-25 3402.029
2005-05-26 6256.648
2005-05-27 13359.893
2005-05-28 21736.211
2005-06-03 26445.063
2005-06-05 26579.678
2005-06-06 26884.476
@e-n-f
e-n-f / gist:5666209
Created May 28, 2013 21:15
Top languages
en 95107484
??? 80946001
es 27870061
id 18753030
pt 11986215
fr 7745577
ja 6858462
ru 4992118
it 4541559
tr 4286421
@e-n-f
e-n-f / gist:5666303
Last active December 17, 2015 20:18
Top languages 2
en 152630185
es 31534357
id 20066636
pt 14060377
ja 9163367
fr 8479905
ru 6517086
ar 6141536
tr 5423390
it 5322993
@e-n-f
e-n-f / index.html
Last active December 21, 2015 15:09
TIGER HTML
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
@e-n-f
e-n-f / tilemill2.md
Last active January 4, 2016 05:09
How to get a shapefile into TileMill 2

How to get a shapefile into TileMill 2

Getting the shapefile onto your computer

You probably already have a shapefile. If not, I downloaded one from Natural Earth:

$ curl -L -O http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries.zip
@e-n-f
e-n-f / index.html
Created January 26, 2014 00:04
Display map tiles from tiles/{z}/{x}/{y}.png relative to the current directory
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
@e-n-f
e-n-f / index.html
Created January 26, 2014 00:44
Generic HTML for viewing arbitrary tiled web maps
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@e-n-f
e-n-f / counts.csv
Created June 18, 2014 05:48
SF pedestrian counts, 1926-present
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 3 columns, instead of 6. in line 1.
1926 scaled to hourly,current hourly,name
2972.8,560,Van,Ness,and,Bush
2826.6,844,Castro,and,18th
2754.4,1387,Third,and,Howard
2679.8,5464,Fourth,and,Howard
2356.6,1689.5,Grant,Columbus,and,Broadway
2178.4,1156,Sixth,and,Mission
1783.2,1554,Stockton,Columbus,and,Green
1460,1113,Third,and,Folsom
1353.6,974,Eighth,and,Mission