Skip to content

Instantly share code, notes, and snippets.

delegate num note
district delegates 11 Allegiances decided in March 1 primaries
super delegates 10 Vote for whomever they choose
additional delegates 5 Chosen by the district delegates at a June 11 meeting
@asuozzo
asuozzo / index.html
Last active August 30, 2016 20:46
Drop-down responsive bar chart
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" href="vtOverdoses.css" type="text/css" charset="utf-8">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src = "https://code.jquery.com/jquery-3.1.0.min.js">
</script>
</head>
@asuozzo
asuozzo / daysbetweendates.py
Created September 29, 2016 11:17
Find the number of days between two dates - Python
def isLeapYear(year):
if year % 4 == 0:
if year % 100 == 0 and year % 400 != 0:
return False
else:
return True
else:
return False
@asuozzo
asuozzo / daysbetweendatesbetter.py
Created September 29, 2016 11:57
Better days between dates - Python
def isLeapYear(year):
if year % 4 == 0:
if year % 100 == 0 and year % 400 != 0:
return False
else:
return True
else:
return False
@asuozzo
asuozzo / affordall.csv
Last active January 11, 2017 19:50
How Affordable Are U.S. States? D3 Diverging Bar Chart
state plusminus2014
Mississippi -13.3
Arkansas -12.5
Alabama -12.2
South Dakota -12.0
Kentucky -11.3
West Virginia -11.1
Ohio -10.7
Missouri -10.6
Oklahoma -9.9
@asuozzo
asuozzo / bwmapstyle.js
Created June 8, 2017 14:38
Custom black and white Google map style
map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: new google.maps.LatLng(43.946515, -72.677099),
mapTypeId: 'roadmap',
mapTypeControl: false,
streetViewControl: false,
fullscreenControl: false,
gestureHandling:'cooperative',
styles: [
{
@asuozzo
asuozzo / mc-validate.js
Last active October 1, 2020 05:46
mc validation
/*!
* jQuery Form Plugin
* version: 3.51.0-2014.06.20
* Requires jQuery v1.5 or later
* Copyright (c) 2014 M. Alsup
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses.
* https://github.com/malsup/form#copyright-and-license
@asuozzo
asuozzo / mc-signup.html
Last active September 4, 2017 17:34
mc-signup
<!-- Begin MailChimp Signup Form -->
<!--[if IE]>
<style type="text/css" media="screen">
#mc_embed_signup fieldset {position: relative;}
#mc_embed_signup legend {position: absolute; top: -1em; left: .2em;}
</style>
<![endif]-->
<!--[if IE 7]>
<style type="text/css" media="screen">
.mc-field-group {overflow:visible;}
@asuozzo
asuozzo / index.html
Last active February 4, 2019 17:50
animated multi-year weather radial
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- D3.js -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<!-- Google Font -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
@asuozzo
asuozzo / .block
Last active February 11, 2019 01:52
Basic responsive column chart
license: mit