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
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
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
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
//Edit _handleDragStart function. | |
_handleDragStart: function(e, ex, ey) | |
{ | |
// Stop any scrolling of elements in our parent hierarcy. | |
$.each(this._getScrollHierarchy(),function(i,sv){ sv._stopMScroll(); }); | |
this._stopMScroll(); | |
var c = this._$clip; | |
var v = this._$view; |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// | |
// create base UI tab and root window | |
// | |
var win1 = Titanium.UI.createWindow({ | |
title: 'Tab 1', | |
backgroundColor: '#fff' | |
}); |
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
<video src="/video/pass-countdown.ogg" width="300" height="150" controls loop="loop"> | |
<p>If you are reading this, it is because your browser does not support the HTML5 video element.</p> | |
</video> |
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
alias firefox='open -a Firefox' | |
alias chrome='open -a Google\ Chrome' | |
alias safari='open -a Safari' | |
alias mvim='open -a MacVim' |
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
# Compassのバージョンを確認 | |
$ compass -v | |
Compass 0.11.5 (Antares) | |
# Compassのバージョンを下げる(0.10.6にする) | |
$ gem install compass --version=0.10.6 | |
Fetching: compass-0.10.6.gem (100%) |
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
$ LANG=C; xdg-user-dirs-gtk-update |