Skip to content

Instantly share code, notes, and snippets.

View lisawilliams's full-sized avatar

Lisa Williams lisawilliams

View GitHub Profile
@lisawilliams
lisawilliams / gist:8700f8ea254a6e33b352
Created August 27, 2014 05:59
Sample code for Illustrated Tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>sStory</title>
<script src="lib/js/3rdparty.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://maps.stamen.com/js/tile.stamen.js?v1.2.4" type="text/javascript"></script>
<script src="lib/js/sstory.js" type="text/javascript" charset="utf-8"></script>
@lisawilliams
lisawilliams / Cleaned data for Rhode Island Early Intervention.csv
Created August 23, 2015 21:52
Number of kids under 3 in early intervention programs in Rhode Island, compared with median household income data
City/Town State Latitude Longitude Kids under 3 in Early Intervention Median Household Income Population Per 100 residents
Woonsocket RI 42.002876 -71.514784 283 $30,819 41,186 0.69
Central Falls RI 41.890655 -71.392278 110 $22,628 19,376 0.57
West Warwick RI 41.703671 -71.521502 148 $39,505 29,191 0.51
Providence RI 41.823989 -71.412834 876 $26,867 178,042 0.49
New Shoreham RI 41.172137 -71.557607 5 $44,779 1,051 0.48
Pawtucket RI 41.878711 -71.382556 337 $31,775 71,148 0.47
Newport RI 41.490102 -71.312829 96 $40,669 24,672 0.39
East Greenwich RI 41.634262 -71.513044 49 $70,063 13,146 0.37
Middletown RI 41.521824 -71.283454 59 $51,075 16,150 0.37
@lisawilliams
lisawilliams / RI-Education.csv
Created August 31, 2015 05:30
Module2Project
City/Town State Latitude Longitude Kids under 3 in Early Intervention Median Household Income Population Per 100 residents
Woonsocket RI 42.002876 -71.514784 283 $30,819 41,186 0.69
Central Falls RI 41.890655 -71.392278 110 $22,628 19,376 0.57
West Warwick RI 41.703671 -71.521502 148 $39,505 29,191 0.51
Providence RI 41.823989 -71.412834 876 $26,867 178,042 0.49
New Shoreham RI 41.172137 -71.557607 5 $44,779 1,051 0.48
Pawtucket RI 41.878711 -71.382556 337 $31,775 71,148 0.47
Newport RI 41.490102 -71.312829 96 $40,669 24,672 0.39
East Greenwich RI 41.634262 -71.513044 49 $70,063 13,146 0.37
Middletown RI 41.521824 -71.283454 59 $51,075 16,150 0.37
@lisawilliams
lisawilliams / gist:5000732
Last active December 14, 2015 00:39
This is the (Processing) code for my #WhenIOwnTheGlobe offering. It involves a giant laser pointer and LOLCats.
// I couldn't quite get processing.js to run for this one, which is why it's an animated gif
//<script type="text/javascript" src="processing.min_.js">
//</script>
//<script type="text/processing" data-processing-target="processing-canvas">
float step = 0.0f;
// The next line is needed if running in JavaScript Mode with Processing.js
// @pjs preload="bosglobe.jpg";
@lisawilliams
lisawilliams / Texts From Hillary meme using NYT API
Created February 21, 2013 22:27
This is a Processing sketch which uses live data from the NYT Article Search API to create a "Texts from Hillary" meme. More about why (or whether) Bill got more mentions here: http://dataforradicals.com/texts-from-hillary
import blprnt.nytimes.*;
// Line above imports a Processing library that makes it easier to deal with the API
PImage bg;
int y;
//void setup() {
size(652, 360);
bg = loadImage("hillary.jpg");
//}
@lisawilliams
lisawilliams / Repeating circles
Last active December 14, 2015 23:39
A small processing sketch demonstrating a for loop.
// Define size of canvas
size(480, 120);
// Set background color (black)
background(0);
// Anti-alias:
smooth();
// making shapes without an outer line:
@lisawilliams
lisawilliams / gist:5209571
Last active December 15, 2015 05:29
Carto markup for TileMill map of kids in Early Intervention programs in Rhode Island. See map here: http://dataforradicals.com/tilemill-and-mapbox-are-pretty-fun/
Map {
background-color: #b8dee6;
}
#countries {
::outline {
line-color: #1889a2 ;
line-width: 2;
line-join: round;
}
@lisawilliams
lisawilliams / gist:5281094
Created March 31, 2013 15:59
Easter Egg Sketch in Processing
// easter egg sketch!
// set the size of the background
size (360, 240);
// set the color of the background (robin's egg blue)
@lisawilliams
lisawilliams / gist:5282031
Created March 31, 2013 21:16
Easter Egg Sketch 2. This one uses a loop to change the color of the eggs.
// easter egg sketch!
// set up some variables for the egg colors.
// taken together, these are RGB purple
int r = 206;
int g = 93;
int b = 219 ;
@lisawilliams
lisawilliams / gist:5503844
Created May 2, 2013 17:28
HTML of the inaugural front page of FvckTheMedia.com
<!DOCTYPE html>
<!-- MSO IS KING -->
<html>
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="media.css" />
<title>The Media</title>
<link rel="icon"
type="image/png"