Skip to content

Instantly share code, notes, and snippets.

public void actionPerformed (ActionEvent arg0) {
// Jahreszahl wird eingelesen und umgewandelt
eingabe = jahr.getText();
try {
jahreszahl = Integer.parseInt(eingabe);
// Methode istSchaltjahr wird aufgerufen
schaltjahr = istSchaltjahr(jahreszahl);
// Entscheidung, ob ein Schaltjahr vorliegt
if (schaltjahr){
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
   import flash.display.Sprite;
import flash.events.Event;
   import flash.events.ProgressEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;
   
/*
// This is a basic example to demonstrate how the Speech-To-Text Library
// can be used. See www.getflourish.com/sst/ for more information on
// available settings.
//
// Florian Schulz 2011, www.getflourish.com
*/
import com.getflourish.stt.*;
@getflourish
getflourish / example.pde
Last active September 26, 2015 01:28
STT Example
/*
// This is a basic example to demonstrate how the Speech-To-Text Library
// can be used. See http://stt.getflourish.com for more information on
// available settings.
//
// Florian Schulz 2014, www.getflourish.com
*/
import com.getflourish.stt.*;
@getflourish
getflourish / FontUtil
Created July 3, 2011 18:27
FontUtil.java
import import geomerative.*;
public static class FontUtil {
public static RFont font = new RFont("lucon.ttf", 32, RFont.CENTER);
}
import import geomerative.*;
public static class FontUtil {
public static RFont font = new RFont("lucon.ttf", 32, RFont.CENTER);
}
public class PFrame extends Frame
{
public PFrame(PApplet p)
{
p.setBounds(100, 100, 200, 600);
controlWindow = new ControlWindow(p);
p.add(controlWindow);
controlWindow.init();
p.show();
}
public class ControlWindow extends PApplet
{
PApplet p;
ControlWindow(PApplet p)
{
this.p = p;
}
public void setup() {
PFrame controlFrame;
public void setup()
{
size(800, 600);
// Zweites Fenster
controlFrame = new PFrame(this);
}
import codeanticode.glgraphics.*;
import processing.opengl.*;
import javax.media.opengl.*;
import java.nio.IntBuffer;
import java.nio.ByteBuffer;
GL gl;
GLSLShader shader;
PGraphicsOpenGL pgl;
ByteBuffer byteBuffer;