Skip to content

Instantly share code, notes, and snippets.

View furu's full-sized avatar

furu furu

View GitHub Profile
@furu
furu / uhyo
Created January 28, 2014 03:39
? opam install --debug ocamltter
00:00.003 010346 10346 locking /home/furu/.opam/lock
00:00.006 010346 FILE(config) Read ~/.opam/config in 0.003s
00:00.007 010346 SYSTEM unlocking /home/furu/.opam/lock (10346)
00:00.008 010346 SYSTEM rm /home/furu/.opam/lock
00:00.010 010346 STATE LOAD-STATE(switch-lock)
00:00.011 010346 FILE(config) Read ~/.opam/config in 0.000s
00:00.037 010346 STATE Loaded /home/furu/.opam/state.cache in 0.023s
00:00.039 010346 FILE(aliases) Read ~/.opam/aliases in 0.000s
00:00.044 010346 FILE(repo-config) Read ~/.opam/repo/default/config in 0.003s
Makefile:457: recipe for target 'libgpg-error.la' failed
make[3]: *** [libgpg-error.la] Illegal instruction: 4
make[3]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12/src'
Makefile:386: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12/src'
Makefile:386: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12'
Makefile:317: recipe for target 'all' failed
furu@furu-no-MacBook-Air ~ $ find .gentoo_prefix/var/db/pkg/ -name CBUILD | xargs ls -ltr | sed -e 's,/\| , ,g' | cut -d' ' -f6,7,8,13,14 | column -t
1 19 03:39 app-crypt mhash-0.9.9.9-r1
1 19 03:47 dev-lang python-exec-2.0.1
1 19 03:47 dev-python python-mhash-1.4-r1
1 19 03:47 dev-lang python-exec-0.3.1
1 19 03:48 dev-python python-exec-10000.2
1 19 03:48 dev-python python-exec-10000.1
1 19 04:02 sys-libs ncurses-5.9-r02.1
1 19 04:02 app-arch bzip2-1.0.6-r3
1 19 04:02 sys-devel gnuconfig-20131128
@furu
furu / star.rb
Created December 25, 2013 10:37
require 'octokit'
require 'pry'
require 'awesome_print'
Octokit.configure do |conf|
conf.login = ''
conf.password = ''
end
rate_limit = Octokit.client.rate_limit
for window in `tmux list-windows -F '#I'`; do
tmux select-window -t $window
tmux send-keys "source ~/.zshrc" C-m
done
@furu
furu / gist:6681296
Last active December 23, 2015 19:19
# こういうの迷う
get '/foo' do
return '' unless User.exists?(id: params[:id])
# 以下処理...
response
end
# 環境
* Windows XP
* Vagrant のバージョン: 知らん。比較的新しいはず。
# 構築
* vagrant box add squeeze32 http://~
* mkdir squeeze32 && cd squeeze32

画像置換

画像置換とは

テキストをCSSで画像に置きかえて表示させる方法。
ブラウザのパフォーマンス、SEO、方法が生理的に受けつけないなど、様々な要因が絡みあい、方法がいっぱい生み出されつらみがある。
なんかしっくりこないのでもうちょっと調べて考えて書く。

pjaxのメモ

window.history

  • go()
  • back()
  • forward()
  • pushState()

CSSのメモ

気をつけること

  • 読み込む順番

文字コードは必ず宣言する