Skip to content

Instantly share code, notes, and snippets.

@ejfox
ejfox / _.md
Created October 15, 2012 06:29
just another inlet to tributary
@ejfox
ejfox / _.md
Created October 16, 2012 20:31
just another inlet to tributary
@ejfox
ejfox / _.md
Created October 22, 2012 05:48
just another inlet to tributary
@ejfox
ejfox / gist:3960624
Created October 26, 2012 18:42
Make links for D3 force layout
_.each(d3darkmoney.nodes, (row, index) ->
# console.log "Nodes, ", row, index
if row.lean is "conservative" && row.type is "cluster"
d3darkmoney['links'].push({"source": index, "target": 0, "value": 1})
else if row.lean is "liberal" && row.type is "cluster"
d3darkmoney['links'].push({"source": index, "target": 1, "value": 1})
)
@ejfox
ejfox / _.md
Created October 29, 2012 04:39
just another inlet to tributary
@ejfox
ejfox / _.md
Created October 29, 2012 05:11
just another inlet to tributary
@ejfox
ejfox / README
Created November 21, 2012 21:08
Test Snippet
# This is the name of this snippet. Always just the first line.
And this is the description. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.
# Color interpolation
A simple example of color interpolation. I personally prefer HSL, but RGB is commented out if you'd like to us it instead.
# D3.svg.axis (x and y)
An example of both an X and Y axis using D3's built in axis function.