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
clean_branches() { | |
git remote prune origin | |
git branch -vv | grep "origin/.*: gone]" | awk '{print $1}' | xargs git branch -D | |
} |
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
/** | |
* @name _swipe | |
* Small event handler for swipe in mobile phones using javascript, this handler is based on http://stackoverflow.com/a/27115070 | |
* This handler supports classes, ids and elements. | |
* @author David Aguilar | |
* @example | |
* | |
* _swipe("#element", function(dir, elem) { | |
* console.info("You're swiping to %s direction.", dir.type); | |
* }); |
OlderNewer