Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nswarr on github.
  • I am nickswarr (https://keybase.io/nickswarr) on keybase.
  • I have a public key ASDtk6Uyog7HAfJ2ZCPkcsihlD6HpIppj3KPV3ltwQ1Q_Ao

To claim this, I am signing this object:

@nswarr
nswarr / bubble-perf.coffee
Created October 23, 2012 03:51
Adds circles to the force layout to test the performance
#=require d3-helper
width = $(window).width() - 20
height = $(window).height() - 10
radius_scale = d3.scale.pow().exponent(0.5).domain([0, 100]).range([2, 20])
center = {x: width / 2, y: height / 2}
nodes = []
ticks = 0