Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import os
import random
import time
import platform
snowflakes = {}
try:
# Windows Support
@joshkehn
joshkehn / eventemitter.js
Created November 21, 2011 20:34 — forked from joshsmith/eventemitter.js
Hands-On Node Event Emitter Exercise 1
var EventEmitter = require('events').EventEmitter;
var util = require('util');
// Here is the Ticker constructor
var Ticker = function() { // This is a pseudo-class
}
util.inherits(Ticker, EventEmitter);
// Emit tick on the tick event