2014-11-08から1日間の記事一覧

MySQL テーブル構造確認

describe [table name]; または show columns from [table name];

python オブジェクトの属性を調べる

print dir(obj) オブジェクトの持つ属性をprint

MySQL date/datetimeオブジェクトのinsert

cast("2014-11-08" as date) cast("2014-11-08 20:30:00" as datetime) insertのvaluesの部分は上記のようにしてinsert

Git rebaseを途中でやめる

Git

git rebase --abort git rebase -i の途中でよく分からなくなってrebaseの前に戻りたいとき

Git 過去のバージョンのファイルを閲覧

Git

git show [Hash]:[File Path] [Hash] -> コミットのハッシュ[File Path] -> クローンしてあるディレクトリからの相対パス