This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// プレゼン用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' | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function download(url, filename) { | |
var a = document.createElement("a"); | |
a.href = url; | |
a.download = filename || url.split("/").slice(-1)[0]; | |
a.click(); | |
} |
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZSH_THEME="bureau" | |
# peco | |
function peco_select_history() { | |
local tac | |
if which tac > /dev/null; then | |
tac="tac" | |
else | |
tac="tail -r" | |
fi |
FriendsOfCake/vagrant-chef : https://github.com/FriendsOfCake/vagrant-chef
vagrant ssh
cd /vagrant
composer -sdev create-project friendsofcake/app-template app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/'); |