This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |