Skip to content

Instantly share code, notes, and snippets.

View mattparrilla's full-sized avatar

Matt Parrilla mattparrilla

View GitHub Profile
@mattparrilla
mattparrilla / index.html
Last active December 18, 2015 03:19
VT Town and Lake Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
/* CSS goes here. */
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
@mattparrilla
mattparrilla / index.html
Last active February 14, 2017 04:23
Vermont Population Choropleth
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
font: 10px sans-serif;
display: inline;
}
.key path {
@mattparrilla
mattparrilla / index.html
Last active December 19, 2015 06:29
VCF Irene Funding Symbol Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
font: 10px sans-serif;
display: inline;
}
.symbol {
@mattparrilla
mattparrilla / fed.json
Last active December 20, 2015 11:39
Graduated Symbol Map of VT
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mattparrilla
mattparrilla / exchange-costs.csv
Last active December 31, 2015 20:39
ACA Federal Grants Per Capita
state awarded population exchange cpc
Alabama 9,772,451 4,822,023 2
Alaska 0 731,449 0
Arizona 30,877,097 6,553,255 5
Arkansas 54,573,738 2,949,131 19
California 910,605,370 38,041,430 TRUE 24
Colorado 178,683,411 5,187,582 TRUE 34
Connecticut 184,096,903 3,590,347 TRUE 51
Delaware 12,936,639 917,092 14
Florida 1,000,000 19,317,568 0
@mattparrilla
mattparrilla / gun_laws.csv
Last active August 29, 2015 13:58
Gun Laws By State Around VT
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 7. in line 1.
state,License required to purchase a handgun?,License required to purchase a rifle/shotgun,Mental health background check required?,Assualt weapons regulated?,Mandatory firearm theft reporting?
Vermont,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
New Hampshire,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
New York,TRUE,FALSE,TRUE,TRUE,TRUE,TRUE
Massachusetts,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE
Connecticut,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE
@mattparrilla
mattparrilla / index.html
Last active August 29, 2015 13:58
Northeastern US Basemap
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
border: 1px solid black;
background: #86b2dd;
margin: 20px auto;
display: block;
}
</style>
@mattparrilla
mattparrilla / ushcn2csv.py
Created April 8, 2014 20:03
Converts USHCN daily temperature data to a CSV with a row per year and date's as columns
#!/usr/local/bin/python
import csv
def date_to_winter():
f = csv.reader(open('vt-temp.csv', 'rU'))
dates = [l for l in f]
del dates[0:2]
date_row = []
@mattparrilla
mattparrilla / index.html
Last active August 29, 2015 14:03
Lyme Disease Cases By County
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
}
.land {
fill: white;
stroke: #bbb;
@mattparrilla
mattparrilla / index.html
Last active August 29, 2015 14:03
Small Multiples Choropleth: Lyme Disease By County in Vermont
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin-top: 70px;
margin-left: 25px;
}
svg {
font: 10px sans-serif;