Skip to content

Instantly share code, notes, and snippets.

View Asuforce's full-sized avatar
🍊
ʕ ◔ϖ◔ʔ

Shun Nishitsuji Asuforce

🍊
ʕ ◔ϖ◔ʔ
View GitHub Profile
@Asuforce
Asuforce / file0.txt
Last active January 12, 2017 06:42
zshでvim+Tabでエラーになる時の対処法 ref: http://qiita.com/Asuforce/items/28b287fdb933d1985e15
vim
@Asuforce
Asuforce / file0.txt
Created November 28, 2015 07:46
Githubを二段階認証にして、弾かれた時にする一番ラクな対策 ref: http://qiita.com/Asuforce/items/c2fa32e78d0d6fcf015d
machine github.com
login [あなたのGitHubのID]
password [2で生成したtoken]
@Asuforce
Asuforce / file2.txt
Last active November 24, 2015 15:59
Laravelで外部キー制約のあるテーブルを操作する。 ref: http://qiita.com/Asuforce/items/2c7cf0c95225083a2af5
$ php artisan db:seed
<?php
function custom_search($search, $wp_query) {
global $wpdb;
//サーチページ以外だったら終了
if (!$wp_query->is_search)
return $search;
if (!isset($wp_query->query_vars))
return $search;