Underscore example:
_.each([1, 2, 3], function(num) { alert(num); });
license: gpl-3.0 | |
height: 1100 | |
border: no |
license: gpl-3.0 | |
redirect: https://observablehq.com/@mbostock/world-tour |
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
L.TileLayer.Common = L.TileLayer.extend({ | |
initialize: function (options) { | |
L.TileLayer.prototype.initialize.call(this, this.url, options); | |
} | |
}); | |
(function () { | |
license: mit |
#Generate cities data
wget http://download.geonames.org/export/dump/cities15000.zip
unzip cities15000.zip
node geonames.js cities15000.txt
The result is json array of cities in the following format:
{
_id:
// Q sample by Jeff Cogswell | |
/*=========== | |
We want to call these three functions in sequence, one after the other: | |
First we want to call one, which initiates an ajax call. Once that | |
ajax call is complete, we want to call two. Once two's ajax call is | |
complete, we want to call three. | |
BUT, we don't want to just call our three functions in sequence, as this quick |
license: gpl-3.0 | |
height: 600 | |
border: no | |
redirect: https://observablehq.com/@d3/u-s-map |
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/d3-color-schemes |
.DS_Store | |
node_modules | |
us-judicial-districts.zip | |
build |