Skip to content

Instantly share code, notes, and snippets.

View jasondavies's full-sized avatar
💭
💡

Jason Davies jasondavies

💭
💡
View GitHub Profile
@jasondavies
jasondavies / chunkParser.js
Last active October 11, 2015 04:27
Streaming CSV Parsing in D3
var d3 = require("../d3"), // Make sure this has this patch: https://github.com/mbostock/d3/pull/783
fs = require("fs");
var bufferSize = 1 << 20;
streamCSV("test.csv", row, done);
function row(d) {
console.log("this is a row", d);
}
@jasondavies
jasondavies / index.html
Created September 28, 2012 18:32
Clipping Self-Intersections
<!DOCTYPE html>
<style>
path {
stroke: #ccc;
fill: none;
}
path.clip {
stroke: #fff;
fill: #fc0;
}
@jasondavies
jasondavies / README.md
Created September 28, 2012 12:09 — forked from jasondavies/README.md
Spiral Stress Test

Stress test for antemeridian cutting!

@jasondavies
jasondavies / README.md
Created September 27, 2012 22:40 — forked from jasondavies/README.md
Gringorten Equal-Area Projection
@jasondavies
jasondavies / README.md
Created September 26, 2012 15:59 — forked from jasondavies/README.md
Adaptive Resampling

D3 2.11’s projections will adaptively resample to reduce local distortion of lines. Move the mouse to change the precision, and drag to change the aspect.

Update: Mike has made some awesome improvements!

@jasondavies
jasondavies / README.md
Created September 24, 2012 23:13 — forked from mbostock/.block
LineString Cutting
@jasondavies
jasondavies / README.md
Created September 22, 2012 17:11 — forked from mbostock/.block
Stereographic Blue Marble
@jasondavies
jasondavies / README.md
Created September 21, 2012 21:59 — forked from jasondavies/README.md
Peirce Quincuncial Projection
@jasondavies
jasondavies / README.md
Created September 19, 2012 10:21 — forked from jasondavies/README.md
Rotating Guyou Hemispheres

Rotating Guyou hemispheres.

@jasondavies
jasondavies / README.md
Created September 19, 2012 09:28 — forked from jasondavies/README.md
Guyou Projection