This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x = 1; | |
int y = 0; | |
int x2 = 0; | |
int len = 100; | |
int y2 = 100; | |
boolean part1 = true; | |
void setup(){ | |
size(400,300); | |
frameRate(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x = 0; | |
int y = 0; | |
int side = 10; | |
boolean start = false; | |
void setup(){ | |
frameRate(10); | |
size(600,400); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] lines; | |
ArrayList<String> pnames = new ArrayList<String>(); | |
ArrayList<Integer> count = new ArrayList<Integer>(); | |
int x = 0; | |
int y = 380; | |
int size = 1; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileWriter; | |
import java.net.*; | |
import java.io.*; | |
//Important Variables below | |
boolean admin = true;//if set to true this user can reset the game | |
String player = "MrMemmo_";//Username, do not use any spaces in the name | |
String dir = "http://172.16.37.184/latin2/";//change to correct directory | |
//Important variables above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This sketch demonstrates how to use an FFT to analyze an | |
* AudioBuffer and draw the resulting spectrum. <br /> | |
* It also allows you to turn windowing on and off, | |
* but you will see there is not much difference in the spectrum.<br /> | |
* Press 'w' to turn on windowing, press 'e' to turn it off. | |
FIND the highest 100 -- there can be ties | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileWriter; | |
import java.net.*; | |
import java.io.*; | |
FileWriter fw; | |
BufferedWriter bw; | |
PrintWriter output; | |
boolean start=false; | |
boolean readit = false; | |
String[] lines; | |
boolean startOut=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
String outFilename = "out.txt"; | |
void setup(){ | |
// Write some text to the file | |
for(int i=0; i<10; i++){ | |
appendTextToFile(outFilename, "Text " + i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] phrases = new String[2]; | |
/* | |
prev and next buttons at top take you from one sentence to the next | |
prev and next buttons on the rectangle take you to next word | |
click on the rectangle to flip from english to latin | |
Quizlet Style | |
TASK: | |
1) add more to the phrases array | |
2) customize and make more user Friendly | |
- example, when you press blue buttons next word should default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FilenameFilter; | |
int counter = 1; | |
int pn = 16; | |
PImage img; // Declare a variable of type PImage | |
PImage[][] pieceArray = new PImage[pn][pn]; | |
int width = 800; | |
int height = 600; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
//import java.text.*; | |
public class WriteToFile { | |
String cont="yes"; //allows while loop to run through at | |
// least once - could of done a do-while instead | |
boolean append = false; |