- Using GitHub, GitLab or similar de facto git hosting/collaborating services
- Many public chat messages, a few private ones
- Preferring remote/asynchronous communication to synchronous one
- Well-tested and -documented applications
- No routine meetings: discuss whenever necessary
- Higher priority for code review with respecting team mates' motivation
- Make code/projects public as mush as possible rather than trying hard to write "tech blog"
- CI/CD
- linter/formatter: not discuss code styles or preferences during code review
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
| class Test | |
| extend Gem::Deprecate | |
| # DEPRECATED | |
| def foo | |
| puts "foo" | |
| end | |
| def bar | |
| puts "bar" |
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
| /** | |
| * @example | |
| * document.getElementById("messages").append( | |
| * strToHTML('<div class="message">foo</div>') | |
| * ); | |
| */ | |
| function strToHtml(rawStr: string) { | |
| var parser = new DOMParser(); | |
| var html = parser.parseFromString(rawStr, 'text/html'); | |
| return html.body.children[0]; |
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html
http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Client.html
DynamoDB's scan operation fetches only 1MB at one time and it adds LastEvaluatedKey (LEK) in the response if it has a next page.
- Rails v5.0.5
helper = ActionView::Base.new
helper.lookup_context.view_paths << Rails.root.join("app/views")
# e.g.) app/views/shared/post_elements/heading/_heading.html.haml
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
| #!/bin/sh | |
| # http://qiita.com/yuku_t/items/ad072418290a2b01a35a | |
| # A: Added | |
| # M: Modified | |
| files=$(git diff --cached --name-only --diff-filter=AM | grep '\.rb$') | |
| if [ -n "$files" ]; then | |
| bundle exec rubocop --force-exclusion ${files} | |
| # For docker: |
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
| ja: | |
| activerecord: | |
| models: | |
| admin_user: 管理ユーザー | |
| attributes: | |
| default: &default | |
| nickname: ニックネーム | |
| email: メールアドレス | |
| bio: BIO |
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
| /** | |
| * @example | |
| * ```ts | |
| * hyphenize("someCamelCaseString"); | |
| * //=> "some-camel-case-string" | |
| * | |
| * hyphenize("ABigHouse"); | |
| * //=> "a-big-house" | |
| * ``` | |
| */ |
NewerOlder