Skip to content

Instantly share code, notes, and snippets.

View madams1's full-sized avatar

Matt Adams madams1

View GitHub Profile
@madams1
madams1 / .block
Last active January 30, 2019 14:20
TAL_dialogue_simple_rects_mouseevents
license: mit
@madams1
madams1 / .block
Last active January 27, 2019 02:29
TAL_dialogue_simple_rects
license: mit
@madams1
madams1 / .block
Last active January 27, 2019 03:33
TAL_dialogue_tooltip_function
license: mit
@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
Last active August 23, 2017 12:12
d3 force directed particle flow (v4)
license: mit
height: 600