Skip to content

Instantly share code, notes, and snippets.

@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 / .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 January 10, 2024 01:25
World Tour
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/world-tour
@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
@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{
@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.

@lobodin
lobodin / README.md
Last active March 30, 2023 06:23
Import GeoNames.org cities data to mongodb.

#Generate cities data

  1. wget http://download.geonames.org/export/dump/cities15000.zip
  2. unzip cities15000.zip
  3. node geonames.js cities15000.txt

The result is json array of cities in the following format:

{

_id:

@mbostock
mbostock / .block
Last active February 9, 2016 02:07
GeoJOIN
license: gpl-3.0
@mbostock
mbostock / .block
Last active May 22, 2022 00:36
Every ColorBrewer Scale
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-color-schemes

A simple script for joining a GeoJSON file with external properties in a CSV or TSV file; extracted from TopoJSON.