Skip to content

Instantly share code, notes, and snippets.

View HugoDaniel's full-sized avatar
🐾
doing something cool

Hugo HugoDaniel

🐾
doing something cool
View GitHub Profile

Keybase proof

I hereby claim:

  • I am HugoDaniel on github.
  • I am hugodaniel (https://keybase.io/hugodaniel) on keybase.
  • I have a public key whose fingerprint is AFF1 4A1A 00D1 8A78 3222 F9EE 87F9 CDC0 092B D266

To claim this, I am signing this object:

@HugoDaniel
HugoDaniel / code1.c
Created April 10, 2013 13:24
Simple test
#include <stdio.h>
int main(void) {
return 0;
}
importScripts('aurora.js', 'mp3.js');
var waveform;
/* takes one element of the buffer for every bin of length binSize */
function sample(buffer, binSize) {
for(var i = 0; i < buffer.length; i += binSize) {
waveform[i/binSize] = Math.max.apply(Math, buffer.subarray(i, i + binSize - 1));
}
}
@HugoDaniel
HugoDaniel / test.js
Created February 26, 2013 15:14
This is a test
// this is a simple test