Skip to content

Instantly share code, notes, and snippets.

@max-mapper
max-mapper / readme.md
Last active December 13, 2015 23:39
node + npm explanation from #voxel.js irc

21:57 < dook> You seem to be new to node, is that right?

21:57 < skidz> good to know... yes.. very

21:57 < skidz> but familar with JS but mostly a C# programmer

21:58 < dook> Ok so the basic premise is that to make Chrome run javascript fast, they made a JS->C++ compiler called V8

21:58 < dook> It makes JS compile into very fast, efficient code.

@andrewxhill
andrewxhill / index.html
Last active December 11, 2015 02:39 — forked from anonymous/index.html
Exploding globe in D3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Exploding world</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
<style type="text/css">
body{
@mbostock
mbostock / .block
Last active January 9, 2020 22:27
Three-Axis Rotation
license: gpl-3.0
redirect: https://observablehq.com/@d3/three-axis-rotation
@mbostock
mbostock / .block
Last active January 10, 2024 01:25
World Tour
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/world-tour
@mbostock
mbostock / .block
Last active January 24, 2017 21:45 — forked from mbostock/.block
U.S. Land TopoJSON
license: gpl-3.0
height: 600
border: no
@mbostock
mbostock / .block
Last active August 11, 2022 21:42
U.S. States TopoJSON
license: gpl-3.0
height: 600
border: no
redirect: https://observablehq.com/@d3/u-s-map
@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });
@mbostock
mbostock / .block
Last active October 21, 2018 21:14 — forked from mbostock/.block
Gnomonic
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-gnomonic
@mbostock
mbostock / .block
Last active March 1, 2019 04:57
Albers Equal-Area Conic
license: gpl-3.0
redirect: https://observablehq.com/@d3/conic-equal-area
@ns-1m
ns-1m / leaflet-button-control.js
Created June 15, 2012 09:07 — forked from ejh/leaflet-button-control.js
Leaflet control button example
// How to use it?
// OnAdd() is called when you use:
// var footButton = new L.Control.Button(footButtonOpts).addTo(map);
// It is passed the map object to which your control is being added.
// The third parameter passed to L.DomEvent.addListener is the context ('this' keyword) which
// you wish to have in the callback (second parameter).
// I still don't know how to use it.