Skip to content

Instantly share code, notes, and snippets.

View GregoryCollett's full-sized avatar

Gregory Collett GregoryCollett

View GitHub Profile
'use strict';
class Frame {
constructor(samples){
// A single frame == 1 second of audio with a 44100 sample rate
this.prev = null;
this._next = null;
// this.samples = samples || new Float32Array(44100);
this.samples = samples || [];
this.callbacks = [];

update object

var state = {
    id: 1,
    points: 100,
    name: "Goran"
};

var newState = {
@GregoryCollett
GregoryCollett / osx-for-hackers.sh
Created November 29, 2015 17:54 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront