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
sed: RE error: illegal byte sequence
tuki0918:ramdisk tuki0918$ export LANG=C
tuki0918:ramdisk tuki0918$ sed -e "s/before/after/g" reed.csv > out.csv
tuki0918:ramdisk tuki0918$ sed -e "s/before2/after2/g" out.csv > out.csv
@tuki0918
tuki0918 / a.md
Last active August 29, 2015 13:57

Sublime Text未経験者にも使って欲しい機能


logo

勝手に思ってるSublime Textの特徴


// プレゼン用UI
$('.root-pane').remove();
$('.gist.container.js-gist-container').css({'width': '100%'});
$('.column.files').css({'width': '100%'});
$('h3').each(function(){
$(this).css({
'margin-top': $('html').height()+'px',
'padding-top': '30px'
});
});
@tuki0918
tuki0918 / 0_reuse_code.js
Created March 21, 2014 08:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function download(url, filename) {
var a = document.createElement("a");
a.href = url;
a.download = filename || url.split("/").slice(-1)[0];
a.click();
}

Idobata Gemfile プレゼント

tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile

プレゼントについてのお詫び

rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)

@tuki0918
tuki0918 / a.md
Last active August 29, 2015 14:02
Hubot Hipchat Jenkins

logo

@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 / install.md
Last active August 29, 2015 14:03
cakephp + vagrant
@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/');