Skip to content

Instantly share code, notes, and snippets.

View dhoboy's full-sized avatar

Daniel dhoboy

View GitHub Profile
@dhoboy
dhoboy / README.md
Last active May 3, 2016 01:27
China Air Quality Data Files

Just the Data files

@dhoboy
dhoboy / README.md
Last active April 18, 2016 06:17
Beijing Air Quality 3

Beijing Air Quality Data recorded at the US Embassy in Beijing over the past 8 years and fed into Mike's Calendar block.

Data is from US State Department and is not fully validated or verified.

This example has a different mouseover interaction than Beijing Air Quality 2

@dhoboy
dhoboy / README.md
Last active April 17, 2016 04:35
Beijing Air Quality 2
Site Parameter Date (LST) Year Month Day Hour Value Unit Duration QC Name
Beijing PM2.5 2008-04-08 15:00 2008 4 8 15 207 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 16:00 2008 4 8 16 180 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 17:00 2008 4 8 17 152 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 18:00 2008 4 8 18 162 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 19:00 2008 4 8 19 171 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 20:00 2008 4 8 20 219 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 21:00 2008 4 8 21 86 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 22:00 2008 4 8 22 63 �g/mg� 1 Hr Valid
Beijing PM2.5 2008-04-08 23:00 2008 4 8 23 61 �g/mg� 1 Hr Valid
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
Contest ID,Contest Title,Contest Seq Nbr,Contest Type,Contest Party,Absentee Mail Blank Votes,Absentee Walk-in Blank Votes,Election Blank Votes,Absentee Mail Over Votes,Absentee Walk-in Over Votes,Election Over Votes,Registered Voters,Total Precincts,Counted Precincts,Candidate ID,Candidate Name,Candidate Seq Nbr,Candidate Party,Absentee Mail Votes,Absentee Walk-in Votes,Election Votes,Total Votes
1,US Senator,2,OF,,5504,1154,8031,60,7,125,690748,351,242,3,"(D) INOUYE, Daniel K.",3,DEM,90373,28458,158397,277228
1,US Senator,2,OF,,5504,1154,8031,60,7,125,690748,351,242,2,"(R) CAVASSO, Cam",2,REP,24876,8300,46763,79939
1,US Senator,2,OF,,5504,1154,8031,60,7,125,690748,351,242,1,"(G) BREWER, Jim",1,GRE,1934,695,5133,7762
1,US Senator,2,OF,,5504,1154,8031,60,7,125,690748,351,242,5,"(L) MALLAN, Lloyd Jeffrey",6,LIB,681,258,2018,2957
1,US Senator,2,OF,,5504,1154,8031,60,7,125,690748,351,242,4,"(N) JARRETT, Jeff",5,NPP,725,252,1720,2697
2,"US Representative, Dist 1",3,OF,,4353,584,8109,18,0,21,690748,156,98,7,"(D) H
@dhoboy
dhoboy / README.md
Last active May 3, 2016 05:08
React and D3

Letter Frequency Bar Chart example rendered with React. This is my first pass at D3 + React. The svg, scales, and axes are defined in componentDidMount. The data is loaded there as well. The chart is drawn in render.

@dhoboy
dhoboy / README.md
Last active September 8, 2015 03:08
Seismic Ratings and Collapse Probabilities of California Hospitals

Punch Card table of the Seismic Ratings and Collapse Probabilities of California Hospitals.

Column Explanations (paraphrased from here):

NPC Rating - Nonstructural Performance Category
A small punch (low rating) means that safe and orderly evacuation following a strong earthquake cannot be assumed. A big punch (high rating) means that the facility can continue to operate for 72 hours without any power, water, or sewer after a strong ground motion.

SPC Rating - Structural Performance Category

@dhoboy
dhoboy / README.md
Last active August 29, 2015 14:20
hello world parallel coordinates

U.S. News & World Report College Rankings data put through Mike Bostock's implementation of Parallel Coordinates. Data gathered 5/9/15.

@dhoboy
dhoboy / README.md
Last active August 29, 2015 14:20
Sortable, Filterable Table

Sortable, Filterable table made with D3.js See the React.js version here

Note: This D3 version of the table doesn't clear the search text onBlur. This allows you to sort the search results.

@dhoboy
dhoboy / README.md
Last active August 29, 2015 14:19
Drought Map