Skip to content

Instantly share code, notes, and snippets.

View rhathaway's full-sized avatar

Rebecca Hathaway rhathaway

View GitHub Profile
@rhathaway
rhathaway / 042020sierrasnowprecip.csv
Last active April 26, 2020 18:46
USDA NRCS April 2020 Snow-Precipitation Report
region site lat lng pctnormalswe pctnormalprecip
NORTHERN GREAT BASIN GRANITE PEAK 45.1633 -109.8080 71 76
TRUCKEE RIVER TRUCKEE 2 39.18 -120.11 67 64
LAKE TAHOE CARSON PASS 38.42 -120.0 70 65
CARSON RIVER EBBETS PASS 38.33 -119.48 83 69
WALKER RIVER LEAVITT LAKE 38.17 -119.37 59 60
@rhathaway
rhathaway / Glyph.pde
Created December 15, 2011 23:28
wunderground + twitter: another attempt
class Glyph {
int x, y, glyphsize;
String text;
Glyph() {
x = 410;
y = 50;
glyphsize = 10;
}
@rhathaway
rhathaway / Glyph.pde
Created December 15, 2011 23:09
wunderground + twitter: one attempt
class Glyph {
int x, y, glyphsize;
Glyph() {
x = 410;
y = 50;
glyphsize = 10;
}
@rhathaway
rhathaway / FINAL_undertheweather.pde
Created December 15, 2011 00:05
final wunderground buttons
import com.francisli.processing.http.*;
import processing.serial.*;
Serial myPort; // arduino port
String oldValue;
PFont cityFont, timeFont, weatherFont, titleFont, subtitleFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
@rhathaway
rhathaway / wunderground_workingbuttons.pde
Created December 14, 2011 05:57
buttons controlling wunderground data
import com.francisli.processing.http.*;
import processing.serial.*;
Serial myPort; // arduino port
String oldValue;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
@rhathaway
rhathaway / wunderground_buttons_serialevent_error.pde
Created December 14, 2011 04:30
wunderground + buttons again
import com.francisli.processing.http.*;
import processing.serial.*;
Serial myPort; // arduino port
String oldValue;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
@rhathaway
rhathaway / wunderground_buttons_error.pde
Created December 14, 2011 02:45
wunderground + buttons: memory error
import com.francisli.processing.http.*;
import processing.serial.*;
Serial arduinoPort;
String oldValue;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
@rhathaway
rhathaway / simplebuttonpress.pde
Created December 14, 2011 00:37
button presses from arduino
import processing.serial.*;
Serial arduinoPort;
String oldValue;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
@rhathaway
rhathaway / sendButtonPress.pde
Created December 13, 2011 05:57
wunderground + buttons
// modified sample from Programming Interactivity, p.262
int HNLbutton = 2;
int SFObutton = 4;
int CHIbutton = 6;
int NYCbutton = 8;
void setup() {
// open the serial port at 9600 bps:
Serial.begin(9600);
@rhathaway
rhathaway / Glyph.pde
Created December 13, 2011 00:15
wunderground + twitter in processing
class Glyph {
int x, y, glyphsize;
Glyph() {
x = 410;
y = 50;
glyphsize = 10;
}
void paint(int i) {