I hereby claim:
- I am agibralter on github.
- I am agibralter (https://keybase.io/agibralter) on keybase.
- I have a public key whose fingerprint is BA38 FE55 E22E 227E B70D DCE9 A847 216C 1298 BF13
To claim this, I am signing this object:
module Hook | |
def self.included(base) | |
# base.extend ClassMethods | |
base.class_eval do | |
# def self.inherited(baseclass) | |
# # super | |
# puts "1 #{baseclass.to_s}" |
I hereby claim:
To claim this, I am signing this object:
Verifying that +agibralter is my blockchain ID. https://onename.com/agibralter |
(╯°□°)╯︵┻━┻ WTF | |
┬─┬ノ(º_ºノ) CALM DOWN! |
class GiantRobot | |
constructor: -> | |
@moves = [] | |
smash: -> | |
@moves.push("smash!") | |
crash: -> | |
@moves.push("crash!") |
html = $ JST["some_template"] | |
foo: bar |
require 'benchmark' | |
n = 100000 | |
a = nil | |
b = nil | |
c = nil | |
STRING = "foo=bar; domain=example.com; path=/; expires=Sat, 09-Feb-2013 07:27:33 GMT; HttpOnly".freeze | |
Benchmark.bm do |x| |
# -*- encoding : utf-8 -*- | |
module LocalRedis | |
module ClassMethods | |
def run_in_foreground! | |
unless pid = fork | |
Dir.chdir(Rails.root) | |
exec(cmd) | |
end |
# Guardfile | |
# Spork | |
guard('spork', cucumber: false, test_unit: false, wait: 90) do | |
watch('config/application.rb') | |
watch('config/environment.rb') | |
watch(%r{^config/environments/.*\.rb$}) | |
watch(%r{^config/initializers/.*\.rb$}) | |
watch('spec/spec_helper.rb') | |
watch(%r{^spec/support/.*\.rb$}) |
module RandomAttribute | |
def generate_unique_random_base64(attribute, n) | |
until random_is_unique?(attribute) | |
self.send(:"#{attribute}=", random_base64(n)) | |
end | |
end | |
def generate_unique_random_hex(attribute, n) | |
until random_is_unique?(attribute) |