Skip to content

Instantly share code, notes, and snippets.

@mbains
mbains / server.js
Created February 22, 2012 20:43 — forked from mixonic/server.js
Node.js + Socket.io + Bash. A collaborative terminal for your browser.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js
//
@mbains
mbains / signals.cpp
Created March 22, 2012 23:01 — forked from munro/signals.cpp
C++11 Signals
#ifndef __signals_h__
#define __signals_h__
#include <list>
#include <memory>
#include <iostream>
#include <functional>
namespace signals {
template<typename... Values> class Signal {