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 'active_support/concern' | |
module MyModule | |
def my_val | |
@my_val ||= 2 | |
end | |
# def self.included(receiver) | |
# receiver.instance_variable_set('@my_val',2) |
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 'benchmark' | |
result = Benchmark.measure do | |
"a"*1_000_000_000 | |
end | |
puts result.total |
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
Show hidden characters
"include_users": false, | |
// "include_users": ["user1", "user2"], | |
// Show the authors of Gists | |
"show_authors": false, | |
// Proxy server | |
// Format: "http://user:pass@proxy:port" | |
"https_proxy": "", |
OlderNewer