DBに保存する前はIDが存在しないので、一律でnullableにしてるけど、みんなそうなん?
class User(
val id: Int?, // ここ
val name: String
====== eclipse設定 ======
==== ホットデプロイの設定 ====
==== logの設定 ====
#!/bin/bash | |
function exit_with_error() { | |
echo "[ERROR]" | |
exit 1 | |
} | |
# | |
# parse option | |
# |
$ man test
import UIKit | |
let code: String = "0001" | |
let num = code.toInt()! + 100 | |
println(num) | |
// --- | |
let user_datas = [ |
alias ctags="`brew --prefix`/bin/ctags" |
$ cd $(bundle show activerecord) |
lines = [ | |
['user_code', 'sex', 'zangyo', 'q1', 'q2'], | |
['0001', '1', 'none', '1', '3'], | |
['0002', '1', 'none', '1', '3'], | |
['0003', '1', 'none', '1', '3'], | |
['0004', '1', 'none', '1', '3'], | |
['0005', '1', 'none', '1', '3'] | |
] | |
heads = lines.shift.map(&:to_sym) |
class D | |
attr_accessor :name, :elements | |
def initialize; yield self; end | |
def print | |
puts "#{@name}/" | |
elements.each {|e| e.print} | |
end | |
end | |
class F |