Skip to content

Instantly share code, notes, and snippets.

@inouetakuya
inouetakuya / git-diff-en.diff
Last active March 1, 2019 09:24
Nuxt 公式ドキュメント翻訳 2019 春の陣の翻訳対象
diff --git a/en/api/components-no-ssr.md b/en/api/components-no-ssr.md
index 1be8149..21536a7 100644
--- a/en/api/components-no-ssr.md
+++ b/en/api/components-no-ssr.md
@@ -43,6 +43,4 @@ description: Skip component rendering on server side(rendering), and display pla
</template>
```
-> Note that `<no-ssr />` can only contain at most ONE child component/element.
-
@inouetakuya
inouetakuya / extended_analyze.json
Last active August 29, 2015 14:10
extended analyze プラグインで tokenizer と filters を指定して解析した結果
// $ curl -XPOST 'localhost:9200/_extended_analyze?tokenizer=kuromoji_tokenizer&filters=kuromoji_baseform,kuromoji_part_of_speech&pretty' -d '絶対に手を出してはいけない相手を夜這いしちゃった俺'
{
"custom_analyzer" : true,
"tokenizer" : {
"kuromoji_tokenizer" : [ {
"token" : "絶対",
"start_offset" : 0,
"end_offset" : 2,
"type" : "word",
"position" : 1,
@inouetakuya
inouetakuya / extended_analyze.json
Last active August 29, 2015 14:10
extended analyze プラグインで解析した結果
// $ curl -XPOST 'localhost:9200/_extended_analyze?analyzer=kuromoji&pretty' -d '絶対に手を出してはいけない相手を夜這いしちゃった俺'
{
"custom_analyzer" : false,
"analyzer" : {
"kuromoji" : [ {
"token" : "絶対",
"start_offset" : 0,
"end_offset" : 2,
"type" : "word",
"position" : 1,
@inouetakuya
inouetakuya / analyze_results.txt
Created November 8, 2014 15:37
kuromoji と custom analyzer (kuromoji_analyzer) の解析結果を比較
3Dエロアニメ 涼宮ハ○ヒの激奏後 レイプされました
=> ["3", "d", "エロ", "アニメ", "涼", "宮", "ハ", "ヒ", "激", "奏", "後", "レイプ"](kuromoji)
=> ["3", "d", "エロ", "アニメ", "涼", "宮", "ハ", "ヒ", "の", "激", "奏", "後", "レイプ", "する", "れる", "ます", "た"](kuromoji_analyzer)
エロゲ Crescendo 永遠だと思っていたあの頃
=> ["エロゲ", "crescendo", "永遠", "思う", "あの", "頃"](kuromoji)
=> ["エロゲ", "crescendo", "永遠", "だ", "と", "思う", "て", "いる", "た", "あの", "頃"](kuromoji_analyzer)
3D エロアニメシリコンドール 彼女の性活
=> ["3", "d", "エロ", "エロアニメシリコンドール", "アニメ", "シリコン", "ドール", "彼女", "性", "活"](kuromoji)
=> ["3", "d", "エロ", "エロアニメシリコンドール", "アニメ", "シリコン", "ドール", "彼女", "の", "性", "活"](kuromoji_analyzer)
きなこの山
@inouetakuya
inouetakuya / videos_spec.rb
Created October 20, 2013 03:22
sample test which generates document with autodoc
# spec/requests/videos_spec.rb
require 'spec_helper'
describe '動画に関する API' do
describe "GET /api/videos.json" do
before do
@video1 = FactoryGirl.create(:brand, name: 'すぐにまたがる家庭教師')
@video2 = FactoryGirl.create(:brand, name: '夫のために身体を差し出す人妻')
@inouetakuya
inouetakuya / videos.md
Last active January 28, 2017 16:29
API document generated by autodoc(https://github.com/r7kamura/autodoc)

GET /api/videos.json

動画一覧を取得できる.

request

GET /api/videos.json

response

@inouetakuya
inouetakuya / mysqld
Last active May 9, 2019 15:36
/etc/logrotate.d/mysqld
# cat /etc/logrotate.d/mysqld
# This logname can be set in /etc/my.cnf
# by setting the variable "err-log"
# in the [safe_mysqld] section as follows:
#
# [safe_mysqld]
# err-log=/var/log/mysqld.log
#
# If the root user has a password you have to create a
@inouetakuya
inouetakuya / td-agent.conf
Last active December 13, 2015 19:58
sample of td-agent config file
# ステップバイステップで学ぶ Fluentd + GrowthForecast でグラフ作成まとめ - 彼女からは、おいちゃんと呼ばれています
# http://d.hatena.ne.jp/inouetakuya/20130216/1361015295
<source>
type forward
</source>
<match apache.access>
type copy
@inouetakuya
inouetakuya / supervisord.conf
Last active December 12, 2015 09:29
sample of supervisor config file
;GrowthForecast を CentOS 6.3 にインストールして Supervisor で管理してみた - 彼女からは、おいちゃんと呼ばれています
;http://d.hatena.ne.jp/inouetakuya/20130211/1360570283
[supervisord]
http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
;http_port=127.0.0.1:9001 ; (alternately, ip_address:port specifies AF_INET)
;sockchmod=0700 ; AF_UNIX socketmode (AF_INET ignore, default 0700)
;sockchown=nobody.nogroup ; AF_UNIX socket uid.gid owner (AF_INET ignores)
;umask=022 ; (process file creation umask;default 022)
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)