Migration table naming convention:
groups_users
Migration file naming convention (the part of the file name that is not automatically generated):
create_groups_users
Model class naming convention:
GroupsUser
public static $errorJapaneseCodes = array( | |
'E00000000' => '疎通確認用のため、対処する必要はありません。', | |
'E00000001' => 'HTTPステータスコード405相当のエラーです。HTTPメソッドがPOSTではありません。', | |
'E00000002' => 'HTTPステータスコード406相当のエラーです。HTTPリクエストヘッダのAccept関連項目が正しくありません。', | |
'E00000003' => 'HTTPステータスコード415相当のエラーです。HTTPリクエストヘッダのContent-type項目が正しくありません。', | |
'E00000010' => 'HTTPコンテンツが空、またはフォーマットが正しくありません。', | |
'E01010001' => 'ショップIDが指定されていません。', | |
'E01010008' => 'ショップIDに半角英数字以外の文字が含まれているか、13文字を超えています。', | |
'E01010010' => 'ショップIDが一致しません。', | |
'E01020001' => 'ショップパスワードが指定されていません。', |
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
Migration table naming convention:
groups_users
Migration file naming convention (the part of the file name that is not automatically generated):
create_groups_users
Model class naming convention:
GroupsUser
require 'selenium-webdriver' | |
module FeatureHelpers | |
DEFAULT_WAIT_TIME = 30 | |
Capybara.register_driver :poltergeist_debug do |app| | |
Capybara::Poltergeist::Driver.new(app, | |
inspector: true, | |
js_errors: true, | |
timeout: DEFAULT_WAIT_TIME |
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip | |
# under public domain terms | |
country_bounding_boxes = { | |
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)), | |
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)), | |
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)), | |
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)), | |
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)), | |
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)), |
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |