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
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; | |
NSString *minorVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; |
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
defaults write com.macromates.TextMate.preview htmlOutputPlacement right |
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
git config --global alias.co checkout | |
git config --global alias.st 'status' | |
git config --global alias.ci 'commit -a' | |
git config --global alias.di 'diff' | |
git config --global alias.br 'branch' | |
git config --global color.diff auto | |
git config --global color.status auto | |
git config --global color.branch auto |
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
javascript:(function($) { | |
var c = 0; | |
$(document).on('ajaxSuccess', function(data, xhr, opt) { | |
if(/shoot$/.test(opt.url) != -1) { | |
c = c + 1; | |
console.log('Bazooka Shoot:' + c); | |
console.log(data); | |
if (c > 40000) { c = 0;} | |
} | |
}); |
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
display alert "タップでクリックを設定" message "" buttons {"Cancel", "タップクリックOFF", "タップクリックON"} cancel button 1 | |
if (button returned of result) is "タップクリックON" then | |
set theValue to 1 | |
else | |
set theValue to 0 | |
end if | |
-- open trackpad preferences | |
tell application "System Preferences" |
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
form { | |
-webkit-transform: translate3d(0px, 0px, 0px); | |
} |
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
# | |
# termcolor.pl : http://h2plus.biz/hiromitsu/entry/674 | |
# | |
# Usage: | |
# > coffee termcolor.coffee | |
# | |
sys = require "sys" | |
fg = "\x1b[38;5;" | |
bg = "\x1b[48;5;" | |
rs = "\x1b[0m" |
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
brew update | |
brew upgrade | |
brew tap phinze/cask | |
brew tap homebrew/versions | |
brew tap phinze/homebrew-cask | |
brew tap homebrew/binary | |