Skip to content

Instantly share code, notes, and snippets.

@timothyjoelwright
timothyjoelwright / redis.coffee
Created May 24, 2012 04:29
De-multiplexing Redis transport for SocketStream
# Publish Event - Redis Transport
redis = require('redis')
subscriptions = require('../../websocket/subscriptions')
module.exports = (config = {}) ->
# REMOVE_BEFORE_0.3.0
throw new Error("Note the {redis: {}} object wrapper was removed in 0.3 alpha3. Please pass any Redis server options to ss.session.store.use('redis') and ss.publish.transport.use('redis') directly.") if config.redis
@timothyjoelwright
timothyjoelwright / gyp_addon
Created April 12, 2012 18:11
Contents of /Users/timothyjoelwright/.node-gyp/0.6.15/tools/gyp_addon
#!/usr/bin/env python
import os
import sys
script_dir = os.path.dirname(__file__)
node_root = os.path.abspath(os.path.join(script_dir, os.pardir))
module_root = os.getcwd()
if sys.platform == 'win32':
output_dir = os.path.join(module_root, 'build')
else: