This file contains hidden or 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.lang.reflect.*; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
int availableIndex = 0; | |
int generateID() { | |
return availableIndex++; | |
} |
This file contains hidden or 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.File; | |
import java.io.IOException; | |
import java.io.InterruptedIOException; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.net.URL; | |
import java.net.URLDecoder; | |
import java.nio.charset.Charset; | |
import java.security.KeyStore; | |
import java.util.Locale; |
This file contains hidden or 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 remixlab.proscene.*; | |
Scene scene; | |
Element elemento1, elemento2, elemento3; | |
void setup() { | |
size(displayWidth, displayHeight, P3D); | |
scene = new Scene(this); | |
elemento1 = new Element(0, 0, 0); | |
elemento2 = new Element(100, 0, 0); | |
elemento3 = new Element(0, 0, 100); | |
This file contains hidden or 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 remixlab.proscene.*; | |
import remixlab.dandelion.geom.Quat; | |
import remixlab.dandelion.core.InteractiveFrame; | |
import remixlab.dandelion.geom.Vec; | |
HashMap<String, PShape> cachedShapes = new HashMap<String, PShape>(); | |
class Game extends Scene { | |
boolean keyboardEnabled = true; |
This file contains hidden or 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 fisica.*; | |
FWorld world; | |
FPoly poly; | |
PShape level; | |
FPoly target; | |
PImage splash; | |
float angle = 0; | |
boolean go, goLeft, goRight, started; |
This file contains hidden or 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 numero; | |
int numeroB = 2; | |
float numeroCasuale = random(10); | |
numero = 10 + numeroB; | |
char lettera = 'a'; | |
String testo = "qualcosa di esempio"; | |
float numeroDecimale = 0.1; | |
int diametro = 20; | |
ellipse(50, 50, diametro, diametro); |
This file contains hidden or 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
/* | |
For more information visit Android developer portal http://developer.android.com/training/sharing/receive.html | |
*/ | |
import android.graphics.BitmapFactory; | |
import android.graphics.Bitmap; | |
import java.io.InputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import android.content.Intent; |
This file contains hidden or 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 processing.video.*; | |
import com.google.zxing.*; | |
import java.io.ByteArrayInputStream; | |
import javax.imageio.ImageIO; | |
import com.google.zxing.common.*; | |
import com.google.zxing.client.j2se.*; | |
import java.awt.image.BufferedImage; | |
Capture cam; //Set up the camera |
This file contains hidden or 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 com.google.zxing.*; | |
import java.io.ByteArrayInputStream; | |
import javax.imageio.ImageIO; | |
import com.google.zxing.common.*; | |
import com.google.zxing.client.j2se.*; | |
import android.graphics.Bitmap; | |
import ketai.camera.*; | |
KetaiCamera cam; | |
boolean globalHistogram = false; |
This file contains hidden or 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
/** | |
Un orologio in Processing | |
Immagini di riferimento: | |
http://tinyurl.com/fusi004a | |
http://tinyurl.com/fusi004b | |
**/ | |
PImage quadrante = null; | |
PImage lancetta = null; |