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
# Thanks to tenderlove on Peepcode play by play | |
require 'digest/md5' | |
def fetch username | |
records = JSON.parse get username | |
records.each do |hash| | |
checksum = Digest::MD5.hexdigest Marshal.dump(hash) | |
hash['checksum'] = checksum | |
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
# RUN MULTIPLE SERVERS LOCALLY | |
rails s | |
rails s -p 3001 -P tmp/pids/server2.pid | |
# RUN A SPECIFIC METHOD IN A MINITEST CLASS | |
ruby -Ilib:test test/models/widget_test.rb -n test_refresh | |
# PRETTY LOOP PRINT | |
Encoding.list.each{|enc| | |
begin |
NewerOlder