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
require 'objspace' | |
class A | |
attr_accessor :b | |
end | |
class B | |
attr_accessor :c | |
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
RUBY_GC_HEAP_FREE_SLOTS: 600000 | |
RUBY_GC_HEAP_GROWTH_FACTOR: 1.25 | |
RUBY_GC_HEAP_GROWTH_MAX_SLOTS: 200000 | |
RUBY_GC_HEAP_INIT_SLOTS: 600000 | |
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR: 1.3 | |
RUBY_GC_MALLOC_LIMIT: 16000000 | |
RUBY_GC_MALLOC_LIMIT_MAX: 32000000 | |
RUBY_GC_OLDMALLOC_LIMIT: 16000000 | |
RUBY_GC_OLDMALLOC_LIMIT_MAX: 32000000 |
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
List of work to be done | |
----------------------- | |
CreateVolume - None | |
CreateSnapshot - None | |
DeleteVolume - None | |
DeleteSnapshot - None | |
AttachVolume None | |
DetachVolume - None | |
DescribeVolumes |
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
### | |
# Execute tests in parallel using multiple processes. Uses DRb to communicate | |
# between processes over a unix socket. | |
gem 'minitest', '~> 5.1.0' | |
require 'minitest' | |
require 'minitest/spec' | |
require 'minitest/mock' | |
require 'drb' | |
require 'drb/unix' |
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
require 'nokogiri' | |
require 'open-uri' | |
words = Hash.new {|h,k| h[k] = 0} | |
(1971..2013).each do |year| | |
["04","10"].each do |month| | |
talk_list = Nokogiri::HTML(open("http://www.lds.org/general-conference/sessions/#{year}/#{month}?lang=eng")) | |
talk_list.css("a.print").each do |link| | |
talk = Nokogiri::HTML(open(link.attributes["href"].value)) |
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
$stack, $draws = [], {} | |
def method_missing *args | |
return if args[0][/^to_/] | |
$stack << args.map { |a| a or $stack.pop } | |
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
end | |
class Array | |
def +@ |