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/python | |
from __future__ import print_function | |
from __future__ import division | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
def D_wrap(A, dX): | |
d = A - np.roll(A, 1) | |
d = 0.5 * (d + np.roll(d, -1)) |
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
'use strict'; | |
var net = require('net'); | |
var libQ = require('kew'); | |
var libFast = require('fast.js'); | |
var io = require('socket.io-client'); | |
var socket = io.connect('http://localhost:3000', {reconnect: true}); | |
var volume = 20; | |
var playing = false; |