Skip to content

Instantly share code, notes, and snippets.

@katsully
katsully / Twitter
Created November 8, 2014 01:07
Using the Twitter API to query different keywords
/////////////////////////////////////////
// By: Kat Sullivan
/////////////////////////////////////////
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
import twitter4j.Status;
import twitter4j.TwitterException;
import twitter4j.QueryResult;
@katsully
katsully / Twitter
Created October 31, 2014 16:50
Twitter
import twitter4j.Trends;
import twitter4j.Location;
import twitter4j.ResponseList;
import twitter4j.Trend;
import java.util.List;
import twitter4j.User;
import twitter4j.Status;
/////////////////////////////////////////
// By: Kat Sullivan
/////////////////////////////////////////
// Daniel Shiffman (with edits from Kat Sullivan)
// http://www.learningprocessing.com
// A Polar coordinate, radius now starts at 0 to spiral outwards
float r = 0;
float theta = 0;
void setup() {
size(400,400);
///////////////////////////////////
// By: Kat Sullivan
///////////////////////////////////
class Circle {
PVector pos;
Circle(PVector tempPos) {
pos = tempPos;