Skip to content

Instantly share code, notes, and snippets.

View onk's full-sized avatar

Takafumi ONAKA onk

View GitHub Profile
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
@onk
onk / .rubocop.yml
Last active January 15, 2018 02:30
僕の使っている .rubocop.yml
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました
# https://github.com/onk/onkcop
inherit_gem:
onkcop: "config/rubocop.yml"
@onk
onk / application.html.diff
Last active January 12, 2018 15:54
slim2haml
--- 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 January 7, 2018 07:21
Layout/FirstParameterIndentation (RuboCop v0.52.1)
# EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
# good
foo(bar(
:baz,
))
# also good
foo bar(
:baz,
)
@onk
onk / position_paper.md
Created December 1, 2017 08:01
Rails勉強会@東京 第93回のポジションペーパー

onk

お仕事

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