Skip to content

Instantly share code, notes, and snippets.

View aflatter's full-sized avatar

Alexander Flatter aflatter

View GitHub Profile
require 'celluloid'
def pusher(condition)
sleep 5
condition.signal 'Wibble'
end
def puller(condition)
value = condition.wait
puts "Pulled: #{value}"
@aflatter
aflatter / inter.js
Created April 4, 2011 20:55 — forked from phreax/inter.js
var app = require('app')
var assert = require('assert')
var db = app.db;
var get_state = function(cb) {
db.get('_state', function(err,doc) {
if(err) {
@aflatter
aflatter / inter.js
Created April 4, 2011 19:59 — forked from phreax/inter.js
var app = require('app')
var assert = require('assert')
var db = app.db;
var get_state = function(callback) {
db.get('_state', function(err,doc) {
if(err) {