Skip to content

Instantly share code, notes, and snippets.

View scotthmurray's full-sized avatar
🤔

Scott Murray scotthmurray

🤔
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 59 columns, instead of 53. in line 1.
Fuel,generation,1/1/01,3/1/01,6/1/01,9/1/01,1/1/02,3/1/02,6/1/02,9/1/02,1/1/03,3/1/03,6/1/03,9/1/03,1/1/04,3/1/04,6/1/04,9/1/04,1/1/05,3/1/05,6/1/05,9/1/05,1/1/06,3/1/06,6/1/06,9/1/06,1/1/07,3/1/07,6/1/07,9/1/07,1/1/08,3/1/08,6/1/08,9/1/08,1/1/09,3/1/09,6/1/09,9/1/09,1/1/10,3/1/10,6/1/10,9/1/10,1/1/11,3/1/11,6/1/11,9/1/11,1/1/12,3/1/12,6/1/12,9/1/12,1/1/13,3/1/13,6/1/13,9/1/13,1/1/14,3/1/14,6/1/14,9/1/14,1/1/15
coal,mWh generation,482.291606,454.879372,516.3348,450.450164,458.892491,458.378691,528.516458,487.342714,493.297409,454.507588,532.094143,493.837609,496.4489319,466.1292397,523.9260866,491.7962911,496.4446213,471.9081978,545.3207271,499.1994996,489.1773847,468.1294669,538.8661553,494.3381275,499.1533241,477.2757064,544.5798768,495.4466762,510.2851021,472.9422043,528.6662966,473.9076436,448.3712629,405.6948018,458.6390002,443.1991882,470.7699532,435.7158679,506.0914909,434.7129666,443.9590679,419.6450351,488.8075026,381.0183997,348.4885835,343.5291233,438.2199257,383.805312,392.2851863,369.6303986,435.
@scotthmurray
scotthmurray / NZNationalParks.csv
Last active September 27, 2015 21:19 — forked from tgerard/NZNationalParks.csv
Visitors to NZ National Parks
NP 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
Abel Tasman 28800 31100 31700 54400 48200 57900 93000 94400 95800 96700 110700 119300 106800 120800 110500 95300
Fiordland 196100 234500 205100 250300 239300 273000 308400 393700 409700 438000 439900 441200 385700 392700 371400 338700
Westland 205500 207300 233900 278900 271500 280900 342300 362400 386000 372800 376700 379300 341400 357300 312100 288800
Aoraki/Mt Cook 154300 147100 135500 158400 143100 158100 157700 209900 201000 192200 172700 201800 170400 186600 146900 155700
Tongariro 32100 41900 45500 48600 51800 55100 80800 96700 100300 95000 97800 83200 102100 110000 141500 114000
Paparoa 11700 30100 33400 40500 40500 44400 71200 87700 98300 116700 97400 121200 130800 165800 127500 114200
@scotthmurray
scotthmurray / australianenergy.csv
Last active September 20, 2015 18:10
Scatter plot with lines, test
Year Coal OilLPG Gas Renewables Uranium
1977 2146 977 256 200 231
1978 2200 1016 283 202 234
1979 2229 1005 315 200 323
1980 2286 960 363 194 386
1981 2637 934 416 207 1066
1982 2798 909 462 212 2363
1983 2988 894 466 205 2177
1984 3143 1076 490 203 2082
1985 3573 1248 523 215 2055
subject male female
Teacher training and education science 18.0062 4.0194
Arts 3.0818 6.4621
Humanities 4.0194 6.1959
Social and behavioural science 6.4621 5.2463
Journalism and information 4 32.0024
Business and administration 9.4491 1.8282
Law 0.7124 10.7553
Life sciences 0.7635 3.222
Physical sciences 3.44 4
@scotthmurray
scotthmurray / hospitalStaffing.csv
Last active September 15, 2015 00:49 — forked from cliff145/hospitalStaffing.csv
Stuck with Y-Axis Mapping
Facility BeginDate EndDate County ControlType HoursType ProductiveHours ProductiveHoursPatient
KINDRED HOSPITAL - SACRAMENTO 1/1/2013 8/31/2013 Sacramento Investor Daily Cost Centers 97,925 12.25
KINDRED HOSPITAL - SACRAMENTO 1/1/2013 8/31/2013 Sacramento Investor Management & Supervision 84,775 10.6
SAN LEANDRO HOSPITAL 1/1/2013 10/30/2013 Alameda Non-Profit Daily Cost Centers 172,742 9.08
PACIFIC HOSPITAL OF LONG BEACH 1/1/2013 10/8/2013 Los Angeles Investor Daily Cost Centers 345,127 8.94
SAN LEANDRO HOSPITAL 1/1/2013 10/30/2013 Alameda Non-Profit Registered Nurse 161,559 8.49
VERDUGO HILLS HOSPITAL 1/1/2013 7/15/2013 Los Angeles Non-Profit Ancillary Cost Centers 202,102 7.99
VERDUGO HILLS HOSPITAL 1/1/2013 7/15/2013 Los Angeles Non-Profit Daily Cost Centers 183,345 7.25
SAN LEANDRO HOSPITAL 1/1/2013 10/30/2013 Alameda Non-Profit Technician & Specialist 128,689 6.76
SAN LEANDRO HOSPITAL 1/1/2013 10/30/2013 Alameda Non-Profit General Services Cost Centers 126,937 6.67
@scotthmurray
scotthmurray / index.html
Last active September 13, 2015 18:40
Taipei Youbike Rental Times since 2012
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Youbike Bar Chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
margin: 40px 0px 0px 40px ;
@scotthmurray
scotthmurray / emigrantes.csv
Last active September 13, 2015 18:18 — forked from ruimgbarros/emigrantes.csv
O Êxodo Português (1994-2014)
ano n_emigrantes
1994 7845
1995 8109
1996 9598
1997 7254
1998 7935
1999 4077
2000 4692
2001 5396
2002 8813
@scotthmurray
scotthmurray / PAvg.csv
Last active September 14, 2015 11:36 — forked from adlukasiak/PAvg.csv
Jersey City . Public Housing
propertyName propertyCategory vacant totalUnits
254 Bergen Avenue Non-Federal Affordable 0.0931 612
Arlington Gardens Non-Federal Affordable 0.0758 1530
Berry Gardens Elderly/Disabled Developments 0.1091 6052
Booker T. Washington Conventional Public Housing 0.1111 5185
Curries Woods Conventional Public Housing 0.0686 5015
Dwight St. Homes Homeownership Project 0.2350 326
Holland Gardens Conventional Public Housing 0.0476 3213
Hudson Gardens Conventional Public Housing 0.0141 3757
Marion Gardens Conventional Public Housing 0.1086 3876
Rank Country Price_To_Income_Ratio Gross_Rental_Yield_City_Centre Gross_Rental_Yield_Outside_of_Centre Price_To_Rent_Ratio_City_Centre Price_To_Rent_Ratio_Outside_of_City_Centre Mortgage_as_a_percentage_of_income affordability_index
1 Papua New Guinea 93 5.96 17.74 16.77 5.64 1140.6 0.09
2 Cuba 77.62 25.63 13.74 3.9 7.28 564.42 0.18
3 Hong Kong 31.49 2.38 2.6 42.1 38.44 203.31 0.49
4 Ghana 29.8 10.87 14.37 9.2 6.96 745.59 0.13
5 Syria 29.14 4.1 3.06 24.37 32.64 271.14 0.37
6 Uganda 28.89 1.79 8.53 55.74 11.73 575.44 0.17
7 Taiwan 28.48 1.1 1.34 90.62 74.9 174.34 0.57
8 Vietnam 27.27 4.26 6.6 23.48 15.15 302.51 0.33
9 Macao 26.98 3.49 1.82 28.66 54.9 183.01 0.55
@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