This file contains 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
#!/bin/bash | |
# find all .git directories and exec "git pull" on the parent. | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \; |
This file contains 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
#!/bin/bash | |
osascript -e "tell application \"Terminal\" | |
activate | |
do script \"/Applications/CoronaSDK/simulator $TM_DIRECTORY\" | |
end tell" |
This file contains 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 ($) { | |
// vertical align (parent relative) | |
$.fn.vAlign = function() { | |
return this.each(function(i) { | |
var ah = $(this).height(); | |
var ph = $(this).parent().height(); | |
var mh = Math.ceil((ph-ah) / 2); | |
$(this).css('margin-top', mh); | |
}); | |
}; |
This file contains 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
h1.someClass { | |
margin: 0; padding: 0; | |
width: 175px; height: 37px; | |
background: url('images/someClass.png') no-repeat; | |
} | |
h1.someClass span { | |
display: block; | |
width: 0; | |
height: 0; | |
overflow: hidden; |
This file contains 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
for ( var i = 0, j = my.length; i < j; i++ ) { | |
} |
This file contains 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
* { | |
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ | |
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ | |
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ | |
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} |
This file contains 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
// Array Remove - By John Resig (MIT Licensed) | |
Array.prototype.remove = function(from, to) { | |
var rest = this.slice((to || from) + 1 || this.length); | |
this.length = from < 0 ? this.length + from : from; | |
return this.push.apply(this, rest); | |
}; |
This file contains 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
" What a funny comment character | |
" .gvimrc.local | |
" Remember to set the following in vimrc: | |
" let g:snips_trigger_key='<c-space>' " Custom snipmate trigger | |
" let mapleader="," " Change the leader | |
" let g:loaded_matchparen=1 " Disable matchparen highlight | |
" start macvim config | |
if has("gui_macvim") |
This file contains 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
[diff] | |
external = ~/scripts/git-diff-wrapper.sh |
This file contains 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 mouseOver (e) { | |
var bg = $(this).find("h2 .background"); | |
var tween = bg.data("tween"); | |
if (tween) tween.stop(); | |
tween = morpheus(bg, { left: 0, duration: 200, easing: easings.easeOutStrong }); | |
bg.data("tween", tween); | |
} | |
function mouseOut (e) { | |
var bg = $(this).find("h2 .background"); |
OlderNewer