I hereby claim:
- I am fsaravia on github.
- I am fedesaravia (https://keybase.io/fedesaravia) on keybase.
- I have a public key whose fingerprint is 17AC 1D9C 4AC2 F27B 4833 9C85 1418 10C1 2437 B1FD
To claim this, I am signing this object:
ENV['CPUPROFILE_REALTIME'] = 1 | |
require 'perftools' | |
require 'rspec' | |
dirs = [] | |
dirs.concat Dir["./spec/models/*.rb"] | |
dirs.concat Dir["./spec/routes/*.rb"] | |
dirs.concat Dir["./spec/helpers/*.rb"] | |
dirs.concat Dir["./spec/script/*.rb"] |
I hereby claim:
To claim this, I am signing this object:
module Randomizer | |
PATTERNS = { | |
lowercase: Array("a".."z"), | |
uppercase: Array("A".."Z"), | |
numbers: Array(0..9), | |
special: %w(- _ .) | |
} | |
module_function | |
def configure(options) |
#! /usr/bin/env bash | |
export PROTEST_REPORT=summary | |
export PROTEST_FAIL_EARLY=true | |
find_command() { | |
find ./test -name "*.rb" -mindepth 2 | |
} | |
NUMBER_OF_FILES=$(echo `find_command | wc -l`) |
# ActiveRecord edition | |
# For use with DataMapper replace line 7 with the following line | |
# if model.first(property.to_sym => result).nil? | |
def fake_unique(model, property, method_module, method) | |
result = method_module.send(method.to_sym) | |
if model.where(property.to_sym => result).first.nil? | |
result | |
else | |
fake_unique(model, property, method_module, method) |
module ZonedTimes | |
@@zoned_methods = [] | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
module ClassMethods |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |