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
#!/usr/bin/env macruby | |
# | |
# MacRubyで画面グリッチをフルスクリーン表示する | |
# | |
# http://twitter.com/negipo/status/67572370247913473 | |
# | |
# ## Usage | |
# | |
# ./glitch.rb | |
# |
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
http://fladdict.net/blog/2011/02/auto-kerning.html | |
グローバル汚染を無くしたのと、jQueryらしくかけるようにしました。 | |
// 引数なしの場合デフォルトのカーニングが摘要される。 | |
$(selector).FLAutoKerning(); | |
// 引数を入れた場合、そのカーニングが摘要される。 | |
$(selector).FLAutoKerning(myKerningInfo); | |
ライセンスは元のFLAutoKerning.jsを継承します。 |
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
# sinatra でのリダイレクト設定 | |
# hoge/ のような '/' 終わりを '/' 無しへリダイレクト | |
# ただし、 http://example.com の場合は末尾 '/' が付く | |
get %r{^(.+)/$} do |c| | |
redirect c, 303 | |
end |
NewerOlder