Skip to content

Instantly share code, notes, and snippets.

@dnprock
dnprock / index.html
Last active August 29, 2015 14:23
US States Map - Side by Side
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 1100px;
height: 500px;
position: relative;
}
@dnprock
dnprock / index.html
Last active July 10, 2018 21:29
US States Map - Choropleth plus Bar
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / index.html
Last active August 29, 2015 14:23
US States Map with Dropdown Selector
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}

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.

@dnprock
dnprock / README.md
Last active August 29, 2015 14:23 — forked from davetaz/README.md
@dnprock
dnprock / index.html
Last active February 16, 2023 19:00
US States Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / index.html
Last active April 23, 2024 21:35
World Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / README.md
Last active September 10, 2015 22:51 — forked from mbostock/.block

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.

.line {
fill: none;
stroke: #4682b4;
stroke-width: 1.5px;
}
.area {
fill: #EDE624;
}
@dnprock
dnprock / force.csv
Last active August 29, 2015 14:01 — forked from d3noob/.block
source target value
Harry Sally 1.2
Harry Mario 1.3
Sarah Alice 0.2
Eveie Alice 0.5
Peter Alice 1.6
Mario Alice 0.4
James Alice 0.6
Harry Carol 0.7
Harry Nicky 0.8