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
#SOURCE https://gist.github.com/tatat/9526513 | |
ja: | |
devise: | |
confirmations: | |
confirmed: 'ใขใซใฆใณใใ็ป้ฒใใพใใใ' | |
# confirmed: 'Your account was successfully confirmed. You are now signed in.' | |
send_instructions: '็ป้ฒๆนๆณใๆฐๅไปฅๅ ใซใกใผใซใงใ้ฃ็ตกใใพใใ' | |
# send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' | |
send_paranoid_instructions: 'ใใใใชใใฎEใกใผใซใขใใฌในใ่ฆใคใใฃใๅ ดๅใๆฌไบบ็ขบ่ชใซใคใใฆใฎใกใผใซใๆฐๅไปฅๅ ใซ้ใใใพใใ' |
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
class Nyan | |
def behave_method(target, source) | |
(class << self; self end).module_exec do | |
alias_method "#{target}_original", target unless method_defined? "#{target}_original" | |
alias_method "#{source}_original", source unless method_defined? "#{source}_original" | |
alias_method target, "#{source}_original" | |
end | |
end | |
def with_behaving_method(a, b) |
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
ActiveRecord::Base.connection.tables.each do |table_name| | |
next if %w|SchemaMigration Session|.include? table_name.classify | |
code = <<EOS | |
class #{table_name.classify} < ActiveRecord::Base | |
attr_accessible :#{table_name.classify.constantize.column_names.join(', :')} | |
end | |
EOS | |
`echo '#{code}' > app/models/#{table_name.singularize}.rb` |
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
<!--[if IE]><script> | |
๏ผผใใ ใใใใ ใใใใใใใ๏ฟคใใใใใใ ใ / | |
ใ ๏ผผใใใใใ ใใใใใใใ๏ฟคใใใใใ ใ / | |
ใใใใใใใใใใใใใ๏ผ๏ฟฃ๏ฟฃใใฝ, | |
ใใใใใใใใใใใใ/ใใใใใ ใ ',ใใใใใใ/ใใ ใใ๏ผฟ/๏ผผ๏ผ๏ผผ/๏ผผ๏ผ|๏ผฟ | |
ใใใ ๏ผผใใใ ๏พ//, {โ}ใ /ยจ`ใฝใ{โ}ใ,๏พใฝใ ใ /ใ ใใ ๏ผผใใ ใใใใใใใ๏ผ | |
ใใใใใ๏ผผ ๏ผใใใ๏ฝใใ ใฝ._.ใใใใ', ใใ๏ผผใใใ ใใ ๏ผใใ IE ๆญปใใ๏ผ | |
ใใใใใ๏ผ ๏ผโใ๏พใใใ๏ฝใผ'โฒใใ ' โ๏ผผ ๏ผผใใใใ๏ผใ ใใใใใใใใ๏ผผ | |
ใใใใใ(ใใ๏ฟฃ๏ฟฃโใใใใใใใใใใโ๏ฟฃใ๏ผฟ)ใใใ๏ฟฃ|๏ผ๏ผผ/๏ผผ/๏ผผ/๏ฟฃ | |
ใใใใใใ๏ฝ๏ฟฃ๏ฟฃ๏ฝใฝใใใใใใใใใใใ/ยด๏ฟฃ |