Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Kerl pykerl

View GitHub Profile
@mbostock
mbostock / .block
Last active Jul 1, 2016 — forked from mbostock/.block
Smooth Slider
View .block
license: gpl-3.0
@caged
caged / d3-server.js
Last active Jul 9, 2019
Directly render and serve d3 visualizations from a nodejs server.
View d3-server.js
// Start `node d3-server.js`
// Then visit http://localhost:1337/
//
var d3 = require('d3'),
http = require('http')
http.createServer(function (req, res) {
// Chrome automatically sends a requests for favicons
// Looks like https://code.google.com/p/chromium/issues/detail?id=39402 isn't
// fixed or this is a regression.
@mbostock
mbostock / .block
Last active Feb 26, 2019
Every ColorBrewer Scale
View .block
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-color-schemes
@mbostock
mbostock / .block
Last active Jul 21, 2020 — forked from mbostock/.block
click-to-zoom via transform
View .block
license: gpl-3.0