Skip to content

Instantly share code, notes, and snippets.

@inspired12
inspired12 / README.md
Last active September 30, 2015 14:36
Search Engine Popularity Line Chart

Election-2016-Search-Engine-Popularity

Working on a few visualizations using the Elections Data shared by Google Trends

data source here

@inspired12
inspired12 / README.md
Last active September 21, 2015 00:53
Political Popularity Scatterplot

Election-2016-Search-Engine-Popularity

Working on a few visualizations using the Elections Data shared by Google Trends

data source here

@inspired12
inspired12 / data.csv
Last active September 9, 2015 01:12
Elections and Search Weeks
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 22 columns, instead of 21. in line 3.
Week,Hillary Clinton,Bernie Sanders,Ben Carson,Ted Cruz,Carly Fiorina,Mike Huckabee,Rand Paul,Marco Rubio,Jeb Bush,Scott Walker,Chris Christie,Lindsey Graham,Rick Santorum,Martin O'Malley,George Pataki,Rick Perry,Lincoln Chafee,Bobby Jindal,John Kasich,Jim Webb,Donald Trump
12/28/2014,1.699089009,0.177758004,0.85261851,0.392416335,0.122591731,0.104202969,0.312674018,0.300404754,2.192188538,0.263572223,0.318738497,0.030652208,0.177758004,0.049036695,0.128721322,0.159369255,0,0.049036695,0.067425457,0.165498834,1.566544367
1/4/2015,4.286984929,0.524219562,1.952675595,0.895633369,0.398397208,2.841354413,0.9771624,0.627540634,3.058373446,0.88478759,10.55891883,0.316498755,0.589490275,0.06549109,0.180100914,0.655018065,0.027284375,0.212818128,0.256543746,0.327412505,5.990411787
1/11/2015,4.773637918,0.65286055,2.172130899,3.25188898,0.4708639,1.790673628,1.56965936,1.924256697,2.414265846,1.254224863,4.351757674,0.256834852,0.422804257,0.037455081,0.133771009,0.856674118,0.048156541,0.422776522,0.374733567,0.09
@inspired12
inspired12 / data.csv
Last active September 2, 2015 02:37
Elections and Bar Graphs
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 22 columns, instead of 21. in line 3.
Week,Hillary Clinton,Bernie Sanders,Ben Carson,Ted Cruz,Carly Fiorina,Mike Huckabee,Rand Paul,Marco Rubio,Jeb Bush,Scott Walker,Chris Christie,Lindsey Graham,Rick Santorum,Martin O'Malley,George Pataki,Rick Perry,Lincoln Chafee,Bobby Jindal,John Kasich,Jim Webb,Donald Trump
12/28/2014,1.699089009,0.177758004,0.85261851,0.392416335,0.122591731,0.104202969,0.312674018,0.300404754,2.192188538,0.263572223,0.318738497,0.030652208,0.177758004,0.049036695,0.128721322,0.159369255,0,0.049036695,0.067425457,0.165498834,1.566544367
1/4/2015,4.286984929,0.524219562,1.952675595,0.895633369,0.398397208,2.841354413,0.9771624,0.627540634,3.058373446,0.88478759,10.55891883,0.316498755,0.589490275,0.06549109,0.180100914,0.655018065,0.027284375,0.212818128,0.256543746,0.327412505,5.990411787
1/11/2015,4.773637918,0.65286055,2.172130899,3.25188898,0.4708639,1.790673628,1.56965936,1.924256697,2.414265846,1.254224863,4.351757674,0.256834852,0.422804257,0.037455081,0.133771009,0.856674118,0.048156541,0.422776522,0.374733567,0.09
@inspired12
inspired12 / data.csv
Last active September 2, 2015 00:28
SVG & Loading
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 22 columns, instead of 21. in line 3.
Week,Hillary Clinton,Bernie Sanders,Ben Carson,Ted Cruz,Carly Fiorina,Mike Huckabee,Rand Paul,Marco Rubio,Jeb Bush,Scott Walker,Chris Christie,Lindsey Graham,Rick Santorum,Martin O'Malley,George Pataki,Rick Perry,Lincoln Chafee,Bobby Jindal,John Kasich,Jim Webb,Donald Trump
12/28/2014,1.699089009,0.177758004,0.85261851,0.392416335,0.122591731,0.104202969,0.312674018,0.300404754,2.192188538,0.263572223,0.318738497,0.030652208,0.177758004,0.049036695,0.128721322,0.159369255,0,0.049036695,0.067425457,0.165498834,1.566544367
1/4/2015,4.286984929,0.524219562,1.952675595,0.895633369,0.398397208,2.841354413,0.9771624,0.627540634,3.058373446,0.88478759,10.55891883,0.316498755,0.589490275,0.06549109,0.180100914,0.655018065,0.027284375,0.212818128,0.256543746,0.327412505,5.990411787
1/11/2015,4.773637918,0.65286055,2.172130899,3.25188898,0.4708639,1.790673628,1.56965936,1.924256697,2.414265846,1.254224863,4.351757674,0.256834852,0.422804257,0.037455081,0.133771009,0.856674118,0.048156541,0.422776522,0.374733567,0.09
@inspired12
inspired12 / data.csv
Last active August 31, 2015 19:01
Countdown to Singularity (Log and Linear)
Time before Present Time to Next Event Event
3700000000 2400000000 Life
1300000000 750000000 Eucaryotic cells, multicellular organisms
550000000 220000000 Cambrian Explosion (body plans)
330000000 135000000 Reptiles
195000000 113500000 Class Mammalia
81500000 49000000 Primates
32500000 25500000 Superfamily Hominoidea
7000000 3100000 Family Hominidae
3900000 2100000 Human ancestors walk upright
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 22 columns, instead of 9. in line 4.
"Search interest by week in the US.
All values indexed to 100, where 100 is the max value across all states and candidates. ",,,,,,,,,,,,,,,,,,,,,
Week,Hillary Clinton,Bernie Sanders,Ben Carson,Ted Cruz,Carly Fiorina,Mike Huckabee,Rand Paul,Marco Rubio,Jeb Bush,Scott Walker,Chris Christie,Lindsey Graham,Rick Santorum,Martin O'Malley,George Pataki,Rick Perry,Lincoln Chafee,Bobby Jindal,John Kasich,Jim Webb,Donald Trump
12/28/2014,1.699089009,0.177758004,0.85261851,0.392416335,0.122591731,0.104202969,0.312674018,0.300404754,2.192188538,0.263572223,0.318738497,0.030652208,0.177758004,0.049036695,0.128721322,0.159369255,0,0.049036695,0.067425457,0.165498834,1.566544367
1/4/2015,4.286984929,0.524219562,1.952675595,0.895633369,0.398397208,2.841354413,0.9771624,0.627540634,3.058373446,0.88478759,10.55891883,0.316498755,0.589490275,0.06549109,0.180100914,0.655018065,0.027284375,0.212818128,0.256543746,0.327412505,5.990411787
1/11/2015,4.773637918,0.65286055,2.172130899,3.25188898,0.4708639,1.790673628,1.56965936,1.9
@inspired12
inspired12 / gist:fed279d1255314e1625b
Last active August 29, 2015 14:21
Houston Directors Data
{{"name":"Tina Paez","department":"Administration and Regulatory Affairs","img":"http://www.houstontx.gov/sites/default/files/directors/paez.jpg","phone":"Director (832) 393-8501","link":"http://houstontx.gov/ara"},{"name":"Mario C. Diaz ","department":"Aviation","img":"http://www.houstontx.gov/sites/default/files/directors/diaz.jpg","phone":" (281) 233-3000","link":"http://www.fly2houston.com/"},{"name":"Anna Russell","department":"City Secretary","img":"http://www.houstontx.gov/sites/default/files/directors/russell.jpg","phone":" (832) 393-1100","link":"http://houstontx.gov/citysec"},{"name":"Kelly Dowe","department":"Finance","img":"http://www.houstontx.gov/sites/default/files/directors/dowe.jpg","phone":" (713) 221-0935","link":"http://houstontx.gov/finance/"},{"name":"Terry Garrison","department":"Fire","img":"http://www.houstontx.gov/sites/default/files/directors/garrison.jpg","phone":"Chief (713) 247-5000","link":"http://houstontx.gov/fire"},{"name":"Kenneth Hoglund","department":"Fleet Management","im
{{"name":"Tina Paez","department":"Administration and Regulatory Affairs"},{"name":"Mario C. Diaz ","department":"Aviation"},{"name":"Anna Russell","department":"City Secretary"},{"name":"Kelly Dowe","department":"Finance"},{"name":"Terry Garrison","department":"Fire"},{"name":"Kenneth Hoglund","department":"Fleet Management"},{"name":"Scott Minnix","department":"General Services"},{"name":"Stephen L. Williams","department":"Health and Human Services"},{"name":"Neal Rackleff","department":"Housing"},{"name":"Omar Reid","department":"Human Resources"},{"name":"Charles T. Thompson","department":"Information Technology"},{"name":"Donna Edmundson, City Attorney","department":"Legal"},{"name":"Rhea Brown Lawson, Ph.D. ","department":"Library"},{"name":"Barbara E. Hartle","department":"Municipal Courts"},{"name":"Katye Tipton","department":"Neighborhoods"},{"name":"Carlecia Wright","department":"Office of Business Opportunity"},{"name":"Joe Turner","department":"Parks and Recreation"},{"name":"Patrick Walsh ","de