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
# == | |
# モデルのベースクラス | |
# モデルに共通の処理はこのクラスに定義する。 | |
module ApplicationBase | |
extend ActiveSupport::Concern | |
included do | |
acts_as_paranoid | |
application_base_common | |
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
be spring rake db:drop;be spring rake db:create;be spring rake db:migrate; be spring rake db:seed; |
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
include FactoryGirl::Syntax::Methods | |
# ActiveRecordのログ内容を表示する | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
# ログの内容を表示する | |
Rails.logger = Logger.new(STDOUT) | |
# ActiveRecordの取得結果をテーブル形式で表示する | |
Hirb.enable |
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
{ | |
"rules": { | |
"class-name": true, | |
"use-strict": [ | |
true, | |
"check-module", | |
"check-function" | |
], | |
"comment-format": [ | |
true, |
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
# 基本は github.com のレポジトリーを指定するだけ | |
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'Shougo/vimproc.vim' | |
[[plugins]] | |
repo = 'delphinus35/typescript-vim' | |
rev = 'colorize-template-strings' |
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
https://github.com/splhack/macvim-kaoriya/issues/26 |
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
# ローカルの変更を破棄する | |
git checkout file_name | |
# 追加したファイルをstageから削除する | |
git revert file_name | |
# ファイルをバージョン管理から外す | |
git rm --cached file_name |
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
北海道 01 | |
青森県 02 | |
岩手県 03 | |
宮城県 04 | |
秋田県 05 | |
山形県 06 | |
福島県 07 | |
茨城県 08 | |
栃木県 09 | |
群馬県 10 |
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
const prefCodes = { | |
"北海道": "01", | |
"青森県": "02", | |
"岩手県": "03", | |
"宮城県": "04", | |
"秋田県": "05", | |
"山形県": "06", | |
"福島県": "07", | |
"茨城県": "08", | |
"栃木県": "09", |
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
.leaflet-div-icon { | |
background: transparent; | |
border: none; | |
} | |
.leaflet-marker-icon .number{ | |
position: relative; | |
top: -37px; | |
font-size: 12px; | |
width: 25px; |
OlderNewer