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
# Application Template機能はRAILS2.3からの新機能をつかう。 | |
# この機能を使うと初期設定のルーチンワークから離れることが出来る。 | |
# | |
# いままではrails [アプリ名] とコマンドを打ってから | |
# gitの設定や、定番プラグインを入れていた<=面倒! | |
# テンプレートエンジンのコード保存先としてGistを利用 | |
# Gist - GitHub | |
# http://gist.github.com/ |
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
# Application Template機能はRAILS2.3からの新機能をつかう。 | |
# この機能を使うと初期設定のルーチンワークから離れることが出来る。 | |
# | |
# いままではrails [アプリ名] とコマンドを打ってから | |
# gitの設定や、定番プラグインを入れていた<=面倒! | |
# テンプレートエンジンのコード保存先としてGistを利用 | |
# Gist - GitHub | |
# http://gist.github.com/ |
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
# Application Template機能はRAILS2.3からの新機能をつかう。 | |
# この機能を使うと初期設定のルーチンワークから離れることが出来る。 | |
# | |
# いままではrails [アプリ名] とコマンドを打ってから | |
# gitの設定や、定番プラグインを入れていた<=面倒! | |
# テンプレートエンジンのコード保存先としてGistを利用 | |
# Gist - GitHub | |
# http://gist.github.com/ |
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
####################################################################### | |
####################################################################### | |
# | |
# .zshrc | |
# 2012年4月7日 | |
# Ubuntu11.04(VMware用)の設定 | |
# | |
# | |
####################################################################### | |
####################################################################### |
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
# vim:set fileencoding=utf-8: | |
# create: 2012-04-06 | |
def kita(string, num) | |
kita = ["キタ", "キタ"] | |
return string += kita[num] | |
end | |
def yokobou(string, num, katati) | |
yokobou = ["―", "━"] |
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 powmod(a,k,m) | |
return a ** k % m | |
end | |
p powmod(3,2,7) | |
p powmod(3,2,6) | |
p powmod(3,2,5) | |
p powmod(3,2,4) | |
p powmod(3,(2**22),4) |