Skip to content

Instantly share code, notes, and snippets.

View jjmilburn's full-sized avatar

Josh Milburn jjmilburn

View GitHub Profile
@jjmilburn
jjmilburn / limNEC.conf
Created December 18, 2014 23:29
limited param NEC file
#
# this config file was automatically generated
# using lirc-0.8.6(SerialDevice) on Thu Aug 12 09:57:19 2010
#
# contributed by
#
# brand: Advance Acoustic
# model no. of remote control: MAP-305II/DAII
# devices being controlled by this remote: Advcance Acoustic MAP-305DAII
#
@jjmilburn
jjmilburn / some stereo magic
Created November 7, 2014 20:37
stereo maybe
public short[] toMonoSampleArray() {
int written = 0;
final short[] samples = new short[this.buffersTotalLength];
for(short[] buffer : buffers) {
System.arraycopy(buffer, 0, samples, written, buffer.length);
written += buffer.length;
}
@jjmilburn
jjmilburn / index.html
Created June 4, 2012 02:52
AllTheThingsInOneBigThing
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src = "http://code.jquery.com/jquery-1.7.2.min.js">
</script>
<title>All Your Base</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />