Skip to content

Instantly share code, notes, and snippets.

View zanarmstrong's full-sized avatar

zan zanarmstrong

View GitHub Profile
@zanarmstrong
zanarmstrong / image.png
Last active August 29, 2015 14:07
in response to SFPC assignment & greatartbot on Twitter
image.png
@zanarmstrong
zanarmstrong / .Rhistory
Last active August 29, 2015 14:12
Weather Line Chart w/ alternate to tooltip
We couldn’t find that file to show.
@zanarmstrong
zanarmstrong / animatedMouseMove.css
Created February 2, 2015 22:02
Jittery Line w/ option to choose interpolation
body {
background-color: #323232;
}
p {
color: white;
font-family: 'Raleway', sans-serif;
}
.mainPath {
@zanarmstrong
zanarmstrong / index.html
Last active September 8, 2015 03:16
Example tests enter/update/exit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="testingExitEnter.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Mouse around the screen and see what you find... </h1>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="testingExitEnter.js"></script>
@zanarmstrong
zanarmstrong / index.html
Last active September 8, 2015 03:28
simple enter/update/exit example w/ data in multiple arrays
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="testingExitEnter.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Mouse around the screen and see what you find... </h1>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="testingExitEnter.js"></script>
@zanarmstrong
zanarmstrong / index.html
Last active September 8, 2015 03:31
Select a picture of the day
<!-- Bostock's slider brush: http://bl.ocks.org/mbostock/6452972-->
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="slider.css">
</head>
<body>
<p>Slide to see a picture from that day.</p>
<div id="photo"></div>
@zanarmstrong
zanarmstrong / bike.css
Last active September 8, 2015 03:34
Caltrain Bike Bumps
body {
margin: 30px;
font-family: 'Raleway', sans-serif;
}
p {
line-height: 1.2;
margin-top: 0px;
margin-bottom: 5px;
color: #626262;
@zanarmstrong
zanarmstrong / index.html
Last active September 8, 2015 03:37
Example map of the US
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
fill: #ccc;
stroke: none;
}
.cities{
@zanarmstrong
zanarmstrong / free-zipcode-database-Primary.csv
Last active September 8, 2015 03:40
public radio kickstarter - npr stations
We can't make this file beautiful and searchable because it's too large.
"zip","ZipCodeType","City","State","LocationType","lat","lon","Location","Decommisioned","TaxReturnsFiled","EstimatedPopulation","TotalWages"
"00705","STANDARD","AIBONITO","PR","PRIMARY",18.14,-66.26,"NA-US-PR-AIBONITO","false",,,
"00610","STANDARD","ANASCO","PR","PRIMARY",18.28,-67.14,"NA-US-PR-ANASCO","false",,,
"00611","PO BOX","ANGELES","PR","PRIMARY",18.28,-66.79,"NA-US-PR-ANGELES","false",,,
"00612","STANDARD","ARECIBO","PR","PRIMARY",18.45,-66.73,"NA-US-PR-ARECIBO","false",,,
"00601","STANDARD","ADJUNTAS","PR","PRIMARY",18.16,-66.72,"NA-US-PR-ADJUNTAS","false",,,
"00631","PO BOX","CASTANER","PR","PRIMARY",18.19,-66.82,"NA-US-PR-CASTANER","false",,,
"00602","STANDARD","AGUADA","PR","PRIMARY",18.38,-67.18,"NA-US-PR-AGUADA","false",,,
"00603","STANDARD","AGUADILLA","PR","PRIMARY",18.43,-67.15,"NA-US-PR-AGUADILLA","false",,,
"00604","PO BOX","AGUADILLA","PR","PRIMARY",18.43,-67.15,"NA-US-PR-AGUADILLA","false",,,
@zanarmstrong
zanarmstrong / howler.min.js
Last active September 8, 2015 03:43
grey boxes flying with music
/*!
* howler.js v1.1.25
* howlerjs.com
*
* (c) 2013-2014, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/
!function(){var e={},t=null,n=!0,r=!1;try{"undefined"!=typeof AudioContext?t=new AudioContext:"undefined"!=typeof webkitAudioContext?t=new webkitAudioContext:n=!1}catch(i){n=!1}if(!n)if("undefined"!=typeof Audio)try{new Audio}catch(i){r=!0}else r=!0;if(n){var s=void 0===t.createGain?t.createGainNode():t.createGain();s.gain.value=1,s.connect(t.destination)}var o=function(e){this._volume=1,this._muted=!1,this.usingWebAudio=n,this.ctx=t,this.noAudio=r,this._howls=[],this._codecs=e,this.iOSAutoEnable=!0};o.prototype={volume:function(e){var t=this;if(e=parseFloat(e),e>=0&&1>=e){t._volume=e,n&&(s.gain.value=e);for(var r in t._howls)if(t._howls.hasOwnProperty(r)&&t._howls[r]._webAudio===!1)for(var i=0;i<t._howls[r]._audioNode.length;i++)t._howls[r]._audioNode[i].volume=t._howls[r]._volume*t._volume;return t}return n?s.gain.value:t._volume},mute:function(){return this._setMuted(!0),this