-
Screencasts
-
Seattle Ember.js sessions
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
class Hash | |
def times_with_utc | |
dup.tap do |new_hash| | |
each_key do |key| | |
value = self[key] | |
if ActiveSupport::TimeWithZone === value | |
new_hash[key] = value.utc | |
elsif Array === value || Hash === value | |
new_hash[key] = value.times_with_utc | |
end |
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
EM.run do | |
c = EM::Hiredis.connect('redis://127.0.0.1:6379/0') | |
puts c.inspect | |
c.callback {puts 'connected'}; | |
c.errback {puts 'error'} | |
c.publish('test', 'foo:bar').tap do |r| | |
r.callback {puts 'request with success'}; | |
r.errback { |e| puts 'request with error'; puts e.inspect} | |
end | |
end |
#Dev Tools & Resources
##Web-API Development
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
require 'delegate' | |
class D < SimpleDelegator | |
def foo | |
puts "foo #{self} #{self.class}" | |
end | |
end | |
D.new("jojo").foo |
##Realtime Analytics
http://www.mongodb.com/presentations/real-time-analytics-mongodb-webinar
http://blog.mongohq.com/first-steps-of-an-analytics-platform-with-mongodb/
http://rubayeet.wordpress.com/2013/12/29/web-analytics-using-mongodb-aggregation-framework/
http://docs.mongodb.org/ecosystem/use-cases/pre-aggregated-reports/
OlderNewer