Skip to content

Instantly share code, notes, and snippets.

View benrudolph's full-sized avatar
💭
🤸‍♂️

Ben Rudolph benrudolph

💭
🤸‍♂️
View GitHub Profile
@benrudolph
benrudolph / index.html
Last active December 10, 2015 08:48
An example of scales
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
font-weight: 300;
}
@benrudolph
benrudolph / style.css
Last active December 11, 2015 01:59
D3 Selections
We couldn’t find that file to show.
@benrudolph
benrudolph / Gemfile
Created January 23, 2013 17:59
Setup local server files
source 'https://rubygems.org'
gem 'rack'
@benrudolph
benrudolph / refugee_data.js
Last active December 12, 2015 02:09
Refugee world JSON data
[{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Nangarhar : Wilayat - Province","population":"390306","lat":34.1718313,"lng":70.62167939999995},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Kabul : Wilayat - Province","population":"145537","lat":34.528455,"lng":69.17170290000001},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Kunduz : Wilayat - Province","population":"65228","lat":36.72657,"lng":68.86033599999996},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Laghman : Wilayat - Province","population":"58268","lat":34.6897687,"lng":70.14558050000005},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Kunar : Wilayat - Province","population":"52393","lat":34.8465893,"lng":71.09731699999998},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Kandahar : Wilayat - Province","population":"49296","lat":31.61088,"lng":65.70027200000004},{"country":"Afghanistan","year":"2011","majorArea":"Asia","camp":"Nangarha
{
"name": "pouchvision.com",
"subdomain": "pouchvision",
"domains": [
"pouchvision.com",
"www.pouchvision.com"
],
"description": "Envisioning pouch",
"version": "0.0.1-17",
"private": true,
Cohort 2-9 10-19 20-29 30-39 40-49 50-59 60-69 70-79
1996–2005 14.28023344
1986–1995 17.25015522 24.51344522
1976–1985 15.89756536 19.87655067 36.41005057
1966–1975 6.154126589 13.21234144 37.42517086 43.27498694
1956–1965 4.6716 6.937853772 19.32853429 33.8987404 45.10359905
1946–1955 8.7197 13.30599053 25.67014266 38.97572146 44.76219151
1936–1945 17.89511 26.69774806 33.89042046 41.8997642 50.68026852
1926–1935 23.83294219 33.58279065 41.06162538 50.42512112
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benrudolph
benrudolph / FrontlineSMS_Contact_Export_20130916.csv
Last active December 23, 2015 04:49
Contact export example
Name Mobile Number Favorite Color
Aye DeePee +41789367438 Blue
Ref Ugee +593982525128 Red
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
"DatabaseID","Source Name","Source Mobile","Destination Name","Destination Mobile","Text","Date Created"
"49",,"+41787799896","","[]","Yeahhh we should hang out later","2013-06-29 19:40:50.0"
"50",,"+41789345587","","[]","Hey benben! Looks like tonight ain't gonna happen. Lets grab beers tomorrow night, so we're hungover for Monday.","2013-06-29 20:25:48.0"
"51",,"+41787799896","","[]","Hahaha fair enough. Im supposed to meet up w lauren in an hr or so. Going out for a walk now","2013-06-29 20:26:28.0"
"52",,"+41787799896","","[]","Okkk prob in thirty mins we'll meet up somewhere?","2013-06-29 21:30:57.0"
"53",,"+41787799896","","[]","Can you hold off inviting israel for a sec?","2013-06-29 22:12:50.0"
"54",,"+41788883445","","[]","He's the biggest chillbrobaggins euer. So glad we went to the garden","2013-06-30 19:01:13.0"
"55",,"+41787799896","","[]","We're lunching! Come downnn","2013-07-01 12:06:16.0"
"57",,"+41789345587","","[]","Great. So they treated it, and it's cured?","2013-07-03 08:23:34.0"
"58",,"
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<title>Download SVG</title>
<style type="text/css">
a{
cursor: pointer;
text-decoration: underline;
color: black;