- Ruby on Rails
- PostgreSQL (public app), SQLite (in-house app)
- authentication_zero for User authentication
This file contains hidden or 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
| Markdown 1 hr 23 mins ███████▍░░░░░░░░░░░░░ 35.6% | |
| JSON 55 mins ████▉░░░░░░░░░░░░░░░░ 23.7% | |
| Other 28 mins ██▌░░░░░░░░░░░░░░░░░░ 12.4% | |
| YAML 25 mins ██▎░░░░░░░░░░░░░░░░░░ 10.9% | |
| TypeScript 12 mins █▏░░░░░░░░░░░░░░░░░░░ 5.4% |
This file contains hidden or 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
| # --- Configuration --- | |
| # If these are defined in Hatchbox Environment Variables, keep the variable names as is. | |
| # Otherwise, replace them with your actual strings (e.g., "NRAK-..."). | |
| NR_API_KEY="${NEW_RELIC_API_KEY}" | |
| NR_ENTITY_GUID="${NEW_RELIC_ENTITY_GUID}" | |
| # 1. Get version information (Use REVISION file if available, otherwise use timestamp) | |
| DEPLOY_VERSION=$(cat REVISION 2>/dev/null || date +%Y%m%d-%H%M%S) | |
| # 2. Build GraphQL query |
foo_idのpresenceでは、存在しないIDでも保存できてしまう- fooを参照した際は
nilが返る
- fooを参照した際は
fooのpresenceを指定すると、foo_idへの代入ではバリデーションを通らなくなるfooに未保存のオブジェクトを代入してsave!するとPG::NotNullViolationが発生するPG::NotNullViolation: ERROR: null value in column "character_id" violates not-null constraint
- Polymorphic association
validates :foo_type, presence: trueは不要
- クラスが存在しない場合はsave!時に
NameError: uninitialized constant XXXが発生する
This file contains hidden or 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
| /* Event Parameters | |
| { | |
| "accessKeyId": "...", | |
| "secretAccessKey": "...", | |
| "region": "ap-northeast-1", | |
| "instanceId": "i-XXXXXXXX" | |
| } | |
| */ | |
| exports.handler = function(event, context) { | |
| console.log('instanceId =', event.instanceId); |
- MindBEMding – getting your head ’round BEM syntax – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts
- BEM
- About HTML semantics and front-end architecture – Nicolas Gallagher
- block, element, modifierの頭文字
- Yandexで発案されたフロントエンドの命名手法
Install rbenv and ruby-build to Amazon Linux (cloud-init).
- Copy & paste content of
user-data.shto EC2 RunInstances user-data - Then, logging in to EC2 instance as ec2-user and run
install-ruby.sh.
NewerOlder