Skip to content

Instantly share code, notes, and snippets.

View rjeschke's full-sized avatar

René Jeschke rjeschke

  • Viaboxx GmbH
  • Bonn, Germany
View GitHub Profile
@rjeschke
rjeschke / weelfuncp.weel
Created January 4, 2012 21:53
Weel functional programming library (clojure-like)
/*
* Experimental clojure-like functional programming library
*/
func map(fn, ls)
local ret = {};
if !ls || !fn then
return ret;
end
@rjeschke
rjeschke / NeetJavaSound.java
Created September 11, 2011 19:26
Low latency javax.sound.sampled API
package streaming;
import java.util.concurrent.Semaphore;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.Line;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.Mixer;
@rjeschke
rjeschke / KeyListenerWrapper.java
Created August 31, 2011 15:26
Workaround for the Linux key repeat quirk.
package thoughts;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.TimeUnit;
import javax.swing.SwingUtilities;
/**
@rjeschke
rjeschke / WavWriter.java
Created August 9, 2011 16:24
Redesign of my simple RIFF WAVE writer class.
package allerlei;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
/**