Skip to content

Instantly share code, notes, and snippets.

View devyn's full-sized avatar
👨‍💻
Nushell is really cool

Devyn Cairns devyn

👨‍💻
Nushell is really cool
View GitHub Profile
@devyn
devyn / darkf_dix.js
Created March 15, 2012 03:07
An example of a pink petal
var darkf_dix = module.exports = function (hub) {
var self = this;
this.hub = hub;
// We register ourself as darkf_dix and are returned a handle that
// allows us to subscribe to or unsubscribe from events.
hub.register (this, "darkf_dix", function (handle) {
// The first argument specifies what item to subscribe to events from.
// If null or undefined, the default is "*". The second argument
// specifies what kind of events to accept. If left null or undefined,