Skip to content

Instantly share code, notes, and snippets.

View line_number.txt
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
View application.html.diff
--- app/views/layouts/application.html.slim 2018-01-12 16:22:21.000000000 +0900
+++ app/views/layouts/application.html.haml 2018-01-12 16:22:18.000000000 +0900
@@ -1,34 +1,34 @@
-doctype 1.1
-html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
- head
- title
- | Fastladder #{@title or [params[:controller].capitalize, (params[:action] if params[:action] != "index")].compact.join(": ")}
- meta http-equiv="Content-Script-Type" content="text/javascript"
- meta http-equiv="Content-Style-Type" content="text/css"
@onk
onk / layout_first_parameter_indentation.rb
Last active Jan 7, 2018
Layout/FirstParameterIndentation (RuboCop v0.52.1)
View layout_first_parameter_indentation.rb
# EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
# good
foo(bar(
:baz,
))
# also good
foo bar(
:baz,
)
@onk
onk / position_paper.md
Created Dec 1, 2017
Rails勉強会@東京 第93回のポジションペーパー
View position_paper.md

onk

お仕事

目黒のドリコムという会社で主に API バックエンドを Rails で書いています。

@onk
onk / .rubocop.yml
Last active Jan 15, 2018
僕の使っている .rubocop.yml
View .rubocop.yml
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました
# https://github.com/onk/onkcop
inherit_gem:
onkcop: "config/rubocop.yml"