Skip to content

Instantly share code, notes, and snippets.

require 'socket'
namespace :tcp do
desc "Start a tcp server"
task :server => :environment do
server = TCPServer.new('0.0.0.0', 8888)
#data = 25
#a = 0x000Aff550002ffab

Backend Architectures

ARCHITECTURES

ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats

@stcatz
stcatz / atoi.rb
Created September 25, 2012 11:53
A simple atoi function in ruby.
# A simple translate from a string to integer.
# A minus before all numbers will be consider to be a negative number.
def atoi(str)
return str if !str.is_a? String
fixed_str = fix(str)
result = 0
@stcatz
stcatz / gist:1286338
Created October 14, 2011 05:44 — forked from dhh/gist:1285068
Hi David,
I came across your profile online and wanted to reach out about Development
Opportunities here at Groupon. The company is growing, and we're always
looking for folks with solid skills that can make positive contribution to
our continued success. Any chance you'd be open to a quick conversation
about opportunities, or for any possible networking potential? If so, let me
know when you're free and we can set up a time to chat. Also, if you are
interested, it would be great if you could forward a current resume over
that I can take a look at. I look forward to hearing back from you! Please
let me know if you have any questions.