Skip to content

Instantly share code, notes, and snippets.

View madams1's full-sized avatar

Matt Adams madams1

View GitHub Profile
@madams1
madams1 / data.js
Created May 24, 2018 19:16 — forked from duhaime/data.js
Sankey Transitions
/*
* Create synthetic data
*
* Groups:
* 0: yellow
* 1: green
* 2: light blue
* 3: dark blue
**/
@madams1
madams1 / .block
Created May 22, 2018 00:40 — forked from fabric-io-rodrigues/.block
Sankey Diagram
border: no
license: gpl-3.0
@madams1
madams1 / .block
Created April 27, 2018 20:01 — forked from mbostock/.block
Force-Directed Tree
license: gpl-3.0
height: 960
@madams1
madams1 / .block
Created November 4, 2017 16:43 — forked from mbostock/.block
Beeswarm
license: gpl-3.0
height: 200
@madams1
madams1 / .block
Last active August 24, 2017 15:08 — forked from mbostock/.block
Kentucky Population Density - Searchable
license: gpl-3.0
height: 600
@madams1
madams1 / README.md
Created August 13, 2017 19:08 — forked from vasturiano/README.md
Entropy

Simulation of collision between moving particles with different masses inside a container, using the d3-force physics engine.

Uses two elastic collision forces, d3.forceBounce to handle elastic collisions between nodes, and d3.forceSurface for collisions with the container walls.

You can reduce the elasticity (coefficient of restitution) of the particles using the slider on the upper-left, causing kinetic energy to be lost at every collision. Elasticity of 1 indicates a pure elastic collision, while a value of 0 will cause particles to stick to each other along the collision axis.

@madams1
madams1 / .block
Created August 12, 2017 02:13 — forked from mbostock/.block
Collision Detection
license: gpl-3.0
@madams1
madams1 / README.md
Created January 16, 2016 17:49 — forked from mbostock/.block
Contour Plot