Skip to content

Instantly share code, notes, and snippets.

@alexandersimoes
alexandersimoes / countries.csv
Created October 28, 2011 17:26
Assign multiple values to each node of data via CSV file
name population gdp
usa 788000000 2000000000
jpn 78000000 990000000
chn 150000000 345000000
@alexandersimoes
alexandersimoes / README.md
Created November 8, 2011 00:11
Gotta Catch 'em All!

Mouse over to change pokemon.

@alexandersimoes
alexandersimoes / rubber_tire_exporters.csv
Last active December 14, 2015 05:29
A comma separated file of the countries that export rubber tires in 2010.
continent region name color export_value
Africa Eastern Africa Kenya #CC6DB1 14144001.440853
Africa Northern Africa Algeria #99237D 12016846.836301
Africa Northern Africa Egypt #99237D 89506178.110955
Africa Northern Africa Tunisia #99237D 26537326.704604
Americas Central America Costa Rica #97192a 177346663.255276
Americas Central America Mexico #97192a 505381185.459467
Americas Central America Panama #97192a 57248041.169942
Americas Northern America Canada #c7242b 2034816314.95393
Americas Northern America United States #c7242b 4165607924.3188
[{"count":2,"name":"The Other Side of Love"},{"count":4,"name":"Cover the Earth"},{"count":2,"name":"River of Gold"},{"count":3,"name":"Queen Of Country Blues"},{"count":4,"name":"From Isolation"},{"count":1,"name":"Shinin' On (2002 Digital Remaster)"},{"count":1,"name":"WANT"},{"count":1,"name":"I Promise My Heart"},{"count":1,"name":"Twist Again au Cin\u00e9_ Vol. 1 (Bandes originales de films)"},{"count":6,"name":"Salsa Salsa"},{"count":1,"name":"Swingers In Paradise"},{"count":3,"name":"Game Over"},{"count":5,"name":"De La Cabeza Con Bersuit Vergarabat"},{"count":7,"name":"Stealth"},{"count":6,"name":"Dusty Porch"},{"count":10,"name":"The Singles Collection"},{"count":1,"name":"Nighttime Calls"},{"count":2,"name":"London Zoo"},{"count":2,"name":"Old Crows Young Cardinals"},{"count":1,"name":"Ocean Avenue"},{"count":1,"name":"Hypocrisy Is The Greatest Luxury"},{"count":3,"name":"Milking The Sacred Cow"},{"count":10,"name":"U gotta believe"},{"count":3,"name":"Diamond Master Series - Mike Bloomfield"},{"cou
@alexandersimoes
alexandersimoes / tree_map_ex1.html
Last active December 28, 2015 14:39
The barebones codebase for getting a D3plus viz up and running.
<!doctype html>
<meta charset="utf-8">
<link href="/css/d3plus.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/d3.js"></script>
<script src="/js/d3.geo.tile.js"></script>
<script src="/js/topojson.js"></script>
<script src="/js/modernizr.js"></script>
<script src="/js/d3plus.js"></script>
<div id="viz"></div>

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

[
{
"song_id": "SOBWVGX12AB017BD87",
"song_title": "Like Dylan In The Movies",
"artist_id": "AR8BUVM1187FB4D94D",
"album_id": 569858,
"duration": 250.69669,
"hotttnesss": null,
"loudness": -10.504,
"year": "1996"
[
{
"count": 3,
"familiarity": 0.7447347668,
"hotttnesss": 0.5650456592,
"artist_id": "AR8BUVM1187FB4D94D",
"names": "Belle and Sebastian",
"lat": 55.864237,
"long": -4.251806,
"location": "GB"
[
{
"count": 2,
"name": "The BBC Sessions",
"album_id": 569858
},
{
"count": 1,
"name": "Illadelph Halflife",
"album_id": 15646
<!doctype html>
<meta charset="utf-8">
<link href="css/d3plus.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/d3.js"></script>
<script src="js/d3.geo.tile.js"></script>
<script src="js/topojson.js"></script>
<script src="js/modernizr.js"></script>
<script src="js/d3plus.js"></script>
<style>
body {