Skip to content

Instantly share code, notes, and snippets.

@inouetakuya
inouetakuya / git-diff-en.diff
Last active Mar 1, 2019
Nuxt 公式ドキュメント翻訳 2019 春の陣の翻訳対象
View git-diff-en.diff
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 Aug 29, 2015
extended analyze プラグインで tokenizer と filters を指定して解析した結果
View extended_analyze.json
// $ 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 Aug 29, 2015
extended analyze プラグインで解析した結果
View extended_analyze.json
// $ 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 Nov 8, 2014
kuromoji と custom analyzer (kuromoji_analyzer) の解析結果を比較
View analyze_results.txt
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 Oct 20, 2013
sample test which generates document with autodoc
View videos_spec.rb
# 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 Jan 28, 2017
API document generated by autodoc(https://github.com/r7kamura/autodoc)
View videos.md

GET /api/videos.json

動画一覧を取得できる.

request

GET /api/videos.json

response

@inouetakuya
inouetakuya / mysqld
Last active May 9, 2019
/etc/logrotate.d/mysqld
View 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 Dec 13, 2015
sample of td-agent config file
View td-agent.conf
# ステップバイステップで学ぶ 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 Dec 12, 2015
sample of supervisor config file
View supervisord.conf
;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)