Skip to content

Instantly share code, notes, and snippets.

# An example of Functional Reactive Programming, by implementing a
# simple collaborative piano.
# By Mikael Brevik <@mikaelbr>
socket = io.connect()
scale = [
'A2', 'Bb2', 'B2', 'C3', 'Db3', 'D3', 'Eb3', 'E3', 'F3', 'Gb3', 'G3', 'Ab3',
'A3', 'Bb3', 'B3', 'C4', 'Db4', 'D4', 'Eb4', 'E4', 'F4', 'Gb4', 'G4', 'Ab4',
'A4', 'Bb4', 'B4', 'C5'
@keiranlovett
keiranlovett / recorder.cs
Created April 26, 2014 19:09
Unity: Recorder
using UnityEngine;
using UnityEditor;
public class Recorder : EditorWindow {
string myString = "FileNameHere";
string status = "Idle";
string recordButton = "Record";
int state = 0;
int fps = 24;
int[] fpsOptions = new int[] {12,24,30,60};
@metasoarous
metasoarous / trusty_nitro_fix_32.sh
Last active October 22, 2015 21:56
Install packages needed to run Nitro todo list app in Ubuntu Trusty Tahr (14.04)
#!/usr/bin/env bash
# make sure curl is installed - I don't think this is default on Ubuntu anymore
apt-get install curl
# Create a tmp dir for housing our debs while we do our business
tmpdir=`mktemp -d`
cd $tmpdir
# Install all of the debs
<link rel="import" href="../speech-mic/speech-mic.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;