Skip to content

Instantly share code, notes, and snippets.

Takafumi ONAKA onk

Block or report user

Report or block onk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View line_number.txt
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
@onk
onk / giga_queries.tsv
Last active Mar 9, 2019
general log 採取
View giga_queries.tsv
16576 SELECT series.*, media_id FROM series JOIN author ON series.author_id = author.id WHERE series.id IN (?,...)) AND author.media_id = '?'
9687 SET NAMES utf8mb4
9687 SET sql_mode='?'
9687 SET time_zone = '?'
9434 SELECT * FROM series_widget WHERE series_id IN (?,...)) AND type_name = '?'
8986 SELECT `episode`.*, `author`.`media_id` FROM `episode` INNER JOIN `series` ON episode.series_id = series.id INNER JOIN `author` ON series.author_id = author.id INNER JOIN `readable_product_free_term` ON episode.readable_product_id = readable_product_free_term.readable_product_id WHERE ((`episode`.`status` = '?') AND (`episode`.`has_page_image` = '?') AND (`episode`.`force_private` = '?') AND (`episode`.`open_at` <= '?') AND ((`episode`.`close_at` > '?') OR (`episode`.`close_at` IS NULL))) AND ((`readable_product_free_term`.`free_term_start_at` <= '?') AND ((`readable_product_free_term`.`free_term_end_at` > '?') OR (`readable_product_free_term`.`free_term_end_at` IS NULL)) AND (`readable_product_free_term`.`platform`
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"
You can’t perform that action at this time.