Skip to content

Instantly share code, notes, and snippets.

function AudioBufferLoader(context) {
this.context = context;
this.loadCount = 0;
this.bufferList = {};
}
AudioBufferLoader.prototype.loadBuffer = function(name,url, cb) {
if(name in this.bufferList){
cb(this.bufferList[name]);
#!/bin/bash
mkdir assets
#__________ create index.html
cat <<EOF > index.html
/*!
* $ npm install
* $ gulp
* $ gulp watch
*/
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
{
"name": "basic_setup",
"version": "1.0.0",
"description": "Basic Setup",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"boilerplate"
],
@saschas
saschas / cycle through the night.markdown
Created September 20, 2015 09:07
cycle through the night

3D Oscillator

the frequency value of the oscillator depends on the sphere in 3D space. You can move the sphere by drag and drop.

A Pen by Sascha Sigl on CodePen.

License.

var å = {
data: {},
size: 10,
store_data : function(data){
this.data = data;
},
calculate_stripes : function(count){
if(!count){
console.warn('Missing Number! How many stripes do you wanna have?')
return false;