Skip to content

Instantly share code, notes, and snippets.

@jimfleming
Created January 7, 2011 07:27
Show Gist options
  • Save jimfleming/769224 to your computer and use it in GitHub Desktop.
Save jimfleming/769224 to your computer and use it in GitHub Desktop.
Listens for events from emission...
var sys = require('sys'),
Emission = require('./emission');
var emission = new Emission();
emission.cycle();
emission.on('recycle', function(cycles) {
if (cycles < 10) {
sys.puts(cycles);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment