Skip to content

Instantly share code, notes, and snippets.

View rhathaway's full-sized avatar

Rebecca Hathaway rhathaway

View GitHub Profile
@rhathaway
rhathaway / Glyph.pde
Created December 12, 2011 06:31
twitter glyphs WIP #1
class Glyph {
int x, y, glyphsize;
Glyph() {
x = 10;
y = 10;
glyphsize = 10;
}
void paint(int i) {
@rhathaway
rhathaway / wunderground4cities.pde
Created December 11, 2011 21:24
wunderground in processing with data for 4 cities
import com.francisli.processing.http.*;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
String locationInfo, currentTime, currentConditions, iconURL, wind, windDirection;
float tempF, tempC, windSpeed;
@rhathaway
rhathaway / wunderground_display.pde
Created December 8, 2011 02:28
wunderground in processing - display
import com.francisli.processing.http.*;
PFont cityFont, timeFont, weatherFont;
PImage backgroundImg;
PImage conditionImg;
PImage windImg;
String locationInfo, currentTime, currentConditions;
float tempF, tempC;
@rhathaway
rhathaway / wunderground.pde
Created December 3, 2011 22:33
wunderground api data in processing
import com.francisli.processing.http.*;
HttpClient client;
void setup() {
client = new HttpClient(this, "api.wunderground.com");
client.GET("/api/[api_key]/conditions/q/CA/San_Francisco.json");
}
void responseReceived(HttpRequest request, HttpResponse response) {
@rhathaway
rhathaway / wunderground_notworking.pde
Created December 3, 2011 19:53
wunderground in processing - not working
import com.francisli.processing.http.*;
HttpClient client;
void setup() {
client = new HttpClient(this, "api.wunderground.com");
client.GET("/api/[api_key]/conditions/q/CA/San_Francisco.json");
}
void responseReceived(HttpRequest request, HttpResponse response) {