Skip to content

Instantly share code, notes, and snippets.

@reprimande
reprimande / 課題1
Created December 15, 2012 02:00
Node.js入門 勉強会(2ndシーズン 1回目) 課題
var net = require('net');
var host = '127.0.0.1';
var port = 12345;
var server = net.createServer();
server.maxConnections = 1;
server.on('connection', function(socket) {
console.log('server : connection start');
@reprimande
reprimande / gist:4239620
Created December 8, 2012 09:51
play binary by supercollider
(
s.waitForBoot {
var rootPath, window, view,
drawBuf, bufnum, sound, task,
width, height, fps, curX, curY, pixSize,
processFunc, loadFile;
// initial settings
rootPath = "/path/to/root/dir";
pixSize = 5;
#!/usr/env/python
import os
bitrate = '320'
src = 'src.wav'
dst = 'dst.mp3'
os.system('lame -b ' + bitrate + ' ' + src + ' ' + dst)
test2