This file contains hidden or 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
module I18n | |
module Registry | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
@log ||= Logger.new(File.join(Rails.root, 'log', 'i18n_registry.log')) | |
@log.info key | |
super | |
end | |
end | |
end |
This file contains hidden or 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
def parseBrainFuck(string, in_while = false) | |
global_stack = [] | |
curr_index = 0 | |
parse_index = 0 | |
parse_lookup = { | |
"+" => lambda {global_stack[curr_index] += 1}, | |
"-" => lambda {global_stack[curr_index] -= 1}, | |
">" => lambda {curr_index += 1}, |
NewerOlder