Skip to content

Instantly share code, notes, and snippets.

View scotthmurray's full-sized avatar
🤔

Scott Murray scotthmurray

🤔
View GitHub Profile
@scotthmurray
scotthmurray / README.md
Last active August 29, 2015 13:57
The United States of Bouncy Balls

Takes mbostock’s shape tweening example as a starting point, then devolves into ridiculousness. Try mousing over paths, and also clicking! Never use this for a real mapping project, except perhaps as inspiration for creating a legitimate outlines-to-Dorling transition.

@scotthmurray
scotthmurray / Important.txt
Created December 4, 2014 19:01
Really Important
some really important information to share
@scotthmurray
scotthmurray / Better Life Index Data.csv
Created December 4, 2014 19:06
OECD Better Life Index Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 25 columns, instead of 13. in line 5.
Country,Dwellings without basic facilities,Housing expenditure,Rooms per person,Household net adjusted disposable income,Household net financial wealth,Employment rate,Job security,Long-term unemployment rate,Personal earnings,Quality of support network,Educational attainment,Student skills,Years in education,Air pollution,Water quality,Consultation on rule-making,Voter turnout,Life expectancy,Self-reported health,Life satisfaction,Assault rate,Homicide rate,Employees working very long hours,Time devoted to leisure and personal care
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522
@scotthmurray
scotthmurray / betterlifeindex.csv
Created December 10, 2014 18:57
Better Life Test
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 25 columns, instead of 13. in line 5.
Country,Dwellings without basic facilities,Housing expenditure,Rooms per person,Household net adjusted disposable income,Household net financial wealth,Employment rate,Job security,Long-term unemployment rate,Personal earnings,Quality of support network,Educational attainment,Student skills,Years in education,Air pollution,Water quality,Consultation on rule-making,Voter turnout,Life expectancy,Self-reported health,Life satisfaction,Assault rate,Homicide rate,Employees working very long hours,Time devoted to leisure and personal care
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522
@scotthmurray
scotthmurray / index.html
Created December 11, 2014 01:04
SVG Resize Test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVG Resize Test</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: #50BCE8;
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 41 columns, instead of 1. in line 3.
Country,Rank,Score,ScoreReversedHighGood,UndernourishmentStandard,UnderweightStandard,EnoughtoEatScore,EnoughtoEatScoreReversed,FoodPriceLevelStandard,FoodPriceInflationStandard,AffordScore,AffordScoreReversed,NutritionDiversityStandard,SafeWaterStandard,FoodQualityScore,FoodQualityScoreReversed,DiabetesStandard,ObesityStandard,UnhealthyEatingScore,UnhealthyEatingScoreReversed,RawUndernourish,RawUnderweight,RawFoodPrice,RawInflationVolatility,RawDietDiversity,RawSafeWater,RawDiabetes,RawObesity,Code,Region,Incomegroup,Driver1,Driver2,Driver3,DriverBest,DriverBestF,Driver1a,Driver2a,Driver3a,DriverWorst,DriverWorstF
Netherlands,1,6,94,0,0,0,100,6,7,7,93,3,0,2,98,9,25,17,83,13.3,16.6,2.02,0.039440707,57,74.4,8.8,10.3,NLD,Europe & Central Asia,High income: OECD,100,100,100,100,Enough to Eat,7,7,17,17,Unhealthy Eating
France,2,8,92,0,0,0,100,14,3,9,91,10,0,5,95,12,24,18,82,4,0.9,2.03,0.082913198,45,97.8,6.3,7.7,FRA,Europe & Central Asia,High income: OECD,100,100,100,100,Enough to Eat,9,9,18,18,Unhealthy Eating
Sw
@scotthmurray
scotthmurray / index.html
Last active August 29, 2015 14:19 — forked from a2q/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sorting Elements</title>
<!--<script type="text/javascript" src="../d3.v3.js"></script>-->
<script type="text/javascript" src="http://d3js.org./d3.v3.js"></script>
<style type="text/css">
SourceCountry 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
People's Republic of China 36620 42584 33518 27642 30037 29622 30391 28503 33024 34126
India 28235 36210 33847 28742 28261 29457 34235 27509 30932 33085
Philippines 14004 18139 18400 19837 24888 28573 38617 36765 34314 29539
Pakistan 13399 14314 13127 10124 8994 7217 6811 7468 11227 12602
Iran 6348 5837 7480 6974 6475 6580 7477 7479 7533 11291
United States of America 6990 8394 9613 9463 10190 8995 8142 7675 7891 8495
United Kingdom and Colonies 7533 7258 7140 8216 8979 8876 8724 6204 6195 5826
France 4391 4429 4002 4290 4532 5051 4646 4080 6280 5624
Iraq 1796 2226 1788 2406 3543 5450 5941 6196 4041 4918
second change
hahahaha
tee hee third change so funny OMG
@scotthmurray
scotthmurray / betterlifeindex.csv
Created September 7, 2015 21:17
module1project
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 25 columns, instead of 1. in line 6.
country,dwellingsWithoutBasicFacilities,housingExpenditure,roomsPerPerson,householdNetAdjustedDisposableIncome,householdNetFinancialWealth,employmentRate,jobSecurity,longTermUnemploymentRate,personalEarnings,qualityOfSupportNetwork,educationalAttainment,studentSkills,yearsInEducation,airPollution,waterQuality,consultationOnRuleMaking,voterTurnout,lifeExpectancy,selfReportedHealth,lifeSatisfaction,assaultRate,homicideRate,employeesWorkingVeryLongHours,timeDevotedToLeisureAndPersonalCare
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522,17,15,90,10.5,61,81,88,7.6,1.3,1.7,3.98,14.25
C