Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
🏠
Working from home

Y.Yamamoto tuki0918

🏠
Working from home
View GitHub Profile
@tuki0918
tuki0918 / Berksfile
Last active August 29, 2015 14:08
vagrant-berkshelf install Error まわり あんまり覚えていないけど、このへん怪しい
source 'https://supermarket.getchef.com'
cookbook 'apt'
@tuki0918
tuki0918 / .gitmodules
Last active August 29, 2015 14:08
CakePHP Settings
[submodule "app/Plugin/DebugKit"]
path = app/Plugin/DebugKit
url = https://github.com/cakephp/debug_kit.git
[submodule "app/Plugin/Phpunit"]
path = app/Plugin/Phpunit
url = https://github.com/dereuromark/cakephp-phpunit
[submodule "app/Plugin/Migrations"]
path = app/Plugin/Migrations
url = https://github.com/CakeDC/migrations.git
@tuki0918
tuki0918 / view.txt
Created September 6, 2014 10:33
php XML -> json -> Pretty
{
"information": {
"time": "1409999243"
},
"item": {
"a": "111",
"b": "222",
"c": "333"
}
}
var a=[],b=$(".ui-scroll-view");if(b)for(var c=b.length,d=b[0].src.split("/"),e=d.length-1,f=0;f<c;f++){d[e]=d[e].replace(/(.*?)_p\d+(\..*?)/,"$1_p"+f+"$2");var g=d.join("/");a.push(g)}else g=$("img").src,a.push(g);for(var l=document.createElement("a"),m=a.length,f=0;f<m;f++)(function(h){setTimeout(function(){var k=a[h];l.href=k;l.download=k.split("/").slice(-1)[0];l.click()},500*h)})(f);
@tuki0918
tuki0918 / removekyword.html
Last active August 29, 2015 14:03
hatenablog custom
<script type="text/javascript">
$(function(){
$(".keyword").each(function(){
var $keyword = $(this);
$keyword.before($keyword.text());
$keyword.remove();
});
});
</script>
@tuki0918
tuki0918 / .zshrc
Created July 3, 2014 13:35
peco: Terminalからお気に入りのディレクトリを開く
fpath=($HOME/zsh/functions/cd-bookmark(N-/) $fpath)
autoload -Uz cd-bookmark
alias cdb='cd-bookmark'
function peco_open_bookmark() {
cdb | peco | awk -F"|" '{ print $2 }' | xargs open
}
zle -N peco_open_bookmark
bindkey '^@' peco_open_bookmark
@tuki0918
tuki0918 / ranking.php
Last active August 29, 2015 14:03
php: pixiv login get ranking html
<?php
/***********************************/
define('TEMP_DIR', sys_get_temp_dir());
/***********************************/
define('APP_NAME', 'pixiv');
define('APP_COOKIE_FILE', TEMP_DIR . '/cookie_' . APP_NAME . '.txt');
/***********************************/
define('PIXIV_LOGIN_URL', 'https://www.secure.pixiv.net/login.php');
define('PIXIV_BASE_URL', 'http://www.pixiv.net/');
@tuki0918
tuki0918 / install.md
Last active August 29, 2015 14:03
cakephp + vagrant
@tuki0918
tuki0918 / .zshrc
Last active August 29, 2015 14:03
zsh -> oh-my-zsh -> peco
ZSH_THEME="bureau"
# peco
function peco_select_history() {
local tac
if which tac > /dev/null; then
tac="tac"
else
tac="tail -r"
fi
@tuki0918
tuki0918 / a.md
Last active August 29, 2015 14:02
Hubot Hipchat Jenkins

logo