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
def factorize(num) | |
ans = Hash.new(0) | |
while true | |
prime_factor = find_prime_factor(num) | |
break if 0 == prime_factor | |
ans[prime_factor] += 1 | |
num /= prime_factor | |
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
#SOURCE https://gist.github.com/kawamoto/4729292 | |
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メールアドレスが見つかった場合、本人確認についてのメールが数分以内に送られます。' |