This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew uninstall openssl | |
brew uninstall curl-ca-bundle | |
brew uninstall readline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = bayeux.getClient() | |
, channelKeyPrefix = "room:"; | |
bayeux.bind('subscribe', function(clientId, channel){ | |
redisClient.incr(channelKeyPrefix + channel, function(error, value){ | |
client.publish(channel, { | |
event: 'user-change', | |
params: { | |
onlineUsers: value | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- encoding: UTF-8 -*- | |
# Derived from <http://stackoverflow.com/questions/5663519/namespacing-thor-commands-in-a-standalone-ruby-executable> | |
require 'rubygems' | |
require 'thor' | |
require 'thor/group' | |
module Hammer |
NewerOlder