Skip to content

Instantly share code, notes, and snippets.

View jasondavies's full-sized avatar
💭
💡

Jason Davies jasondavies

💭
💡
View GitHub Profile
@jasondavies
jasondavies / README.md
Created October 13, 2011 11:49
Zoom/Pan Map Example

Demonstrates using d3.behavior.zoom with a geographic projection. Based on an example by Iain Dillingham.

@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 / .block
Last active February 4, 2024 12:38 — forked from mbostock/.block
Parallel Coordinates
license: gpl-3.0
@jasondavies
jasondavies / clpeak.txt
Created November 13, 2023 14:34
M3 Max clpeak
Platform: Apple
Device: Apple M3 Max
Driver version : 1.2 1.0 (Macintosh)
Compute units : 40
Clock frequency : 1000 MHz
Global memory bandwidth (GBPS)
float : 361.17
float2 : 380.13
@jasondavies
jasondavies / README.md
Created December 2, 2012 11:54 — forked from mbostock/.block
World Map

Based on Mike Bostock’s [World Map][0], modified to automatically colour countries such that no adjacent countries share the same colour.

This is done by extracting the topology via [TopoJSON][1] and greedily picking colours until the constraint is fulfilled.

See also: [Graph coloring][2] on Wikipedia.

Update: Greedily colouring is now performed in a single line, thanks to Mike Bostock!

I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 69
Hash: b67179d2 d07fdec2 aab46b63 58741764
077f05ca b5171f9b c614ba26 7e20876d
065e2fde e3355c26 6f4f57b0 ec907e4e
58df82e0 993b3cb0 6ba33281 7f27de8b
@jasondavies
jasondavies / .gitignore
Last active October 27, 2019 19:48 — forked from mbostock/.block
Ocean
build
node_modules
@jasondavies
jasondavies / README.md
Created November 16, 2012 23:20 — forked from mbostock/.block
World Boundaries TopoJSON
@jasondavies
jasondavies / README.md
Last active June 13, 2019 23:16 — forked from mbostock/.block
Vertical Bullet Charts
@jasondavies
jasondavies / index.html
Last active March 22, 2019 20:30
RequireJS and D3
<!DOCTYPE html>
<meta charset="utf-8">
<style> body { font-family: sans-serif; } </style>
<body>
<script src="require.js"></script>
<script>
require.config({
paths: {
d3: "http://d3js.org/d3.v3.min"
}