Skip to content

Instantly share code, notes, and snippets.

View rossta's full-sized avatar
💭
Being curious

Ross Kaffenberger rossta

💭
Being curious
View GitHub Profile
@rossta
rossta / gist:1052211
Created June 28, 2011 21:10 — forked from noahd1/gist:1051970
Moneyball Rules

Changelog

v. 3.0.0

  • created, ignoring all previous incarnations of the rules, from draft of an email

v 3.0.1

  • Clarifications
@rossta
rossta / unmasking_benchmark.rb
Created June 2, 2011 10:56 — forked from mloughran/unmasking_benchmark.rb
Making WebSocket unmasking fast in ruby
module EventMachine
module WebSocket
class MaskedString < String
def read_mask
raise "Too short" if bytesize < 4 # TODO - change
@masking_key = String.new(self[0..3])
end