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
> f.date_select_or_confirm :birth_date, {}, {class: "date"} | |
<select class="date" id="user_birth_date_1i" name="user[birth_date(1i)]"> | |
<select class="date" id="user_birth_date_2i" name="user[birth_date(2i)]"> | |
<select class="date" id="user_birth_date_3i" name="user[birth_date(3i)]"> | |
※<option>は省略してます。 |
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
package main | |
import ( | |
"fmt" | |
"github.com/codegangsta/martini" | |
"os/exec" | |
) | |
func main() { | |
m := martini.Classic() |
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
# 競合するgdbがないなら必要ない | |
# 普通にbrewで入れたらgdbコマンドが使える | |
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb' |
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
brew install pdftohtml |
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
package main | |
import ( | |
"database/sql" | |
"github.com/coopernurse/gorp" | |
_ "github.com/go-sql-driver/mysql" | |
"log" | |
) | |
type PostInfo struct { |
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
slice1 = append(slice1, slice2) |
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
pip install git+https://github.com/kazuph/unicornherder.git |
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 "mechanize" | |
class BijoGifUrl | |
class << self | |
def execute() | |
new().urls | |
end | |
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
ja: | |
gender: | |
- '男性' | |
- '女性' |
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
+gem 'activerecord-session_store' |