Skip to content

Instantly share code, notes, and snippets.

View deivinsontejeda's full-sized avatar
🎯

Deivinson Tejeda deivinsontejeda

🎯
  • Santiago of Chile
View GitHub Profile
@shu0115
shu0115 / file0.txt
Created February 25, 2013 06:19
Ruby 2.0.0-p0インストール(Mac OS X 10.8.2) ref: http://qiita.com/items/a24d1c8a1539f858137b
brew uninstall openssl
brew uninstall curl-ca-bundle
brew uninstall readline
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
}
anonymous
anonymous / hammer
Created March 1, 2012 07:16
hammer prototype
#!/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