Skip to content

Instantly share code, notes, and snippets.

@devrand
devrand / array|object methods.md
Last active Jan 17, 2018 — forked from mbostock/README.md
Underscore’s Equivalents in D3
View array|object methods.md

Collections

each(array)

[1, 2, 3].forEach(function(num) { alert(num); });

each(object)

View points.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am devrand on github.
  • I am devrand (https://keybase.io/devrand) on keybase.
  • I have a public key ASBVw5Ij8oE2Yk0DzVYgZTKCPtzuzrMWI5Ca8B6iCk_4Ego

To claim this, I am signing this object:

@devrand
devrand / data_100_en.csv
Last active Aug 28, 2016
Elections-2014, Ukraine. Choropleth with jenks + force-directed labels + connected monobar chart
View data_100_en.csv
name id Poroshenko Tymoshenko Lyashko Grytzenko Tigipko Dobkin Rabinovych Bogomolez Symonenko Tyagnybok Yarosh Others
Vinnytsya region 3159 67.32 15.57 5.55 4.11 1.68 0.47 0.85 0.94 0.64 0.84 0.37 1.66
Volyn region 3160 52.41 17.3 14.55 6.15 1.91 0.43 0.56 1.93 0.47 1.92 0.54 1.83000000000001
Dnipropetrovsk region 3140 44.72 9.43 6.28 6.26 10.53 4.74 5.15 2.68 3.22 0.82 1.12 5.05000000000001
Donezk region 3141 36.15 7.71 2.9 4.16 19.59 6.81 5.53 2.6 4.34 0.7 0.79 8.72
Zhytomyr region 3162 58.64 15.07 9.54 4.42 3.55 0.61 1.36 1.67 1.22 1.15 0.51 2.26000000000001
Zakarpattya region 3158 62.02 12.87 7.41 4.02 3.14 2.07 1.52 1.46 0.56 1.26 0.57 3.09999999999999
Zaporizhzhya region 3161 38.15 9.73 4.91 6.22 13.74 5.98 6.97 2.98 4.15 0.74 0.76 5.67000000000002
Ivano-Frankivsk region 3142 65.13 14.78 9.01 4.63 0.57 0.11 0.28 1.53 0.19 1.8 0.6 1.37
Kyiv region 3146 61.67 13.61 9.75 5.12 2.16 0.43 1.14 1.72 0.6 1.12 0.69 1.99000000000001
@devrand
devrand / bh.topo.json
Last active Dec 19, 2015
Mental mapping of places from Crimean towns
View bh.topo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.