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
# checkout main | |
# pull origin | |
# prune origin | |
# delete local branches that were pruned from origin | |
alias gpmp="git checkout main && git pull && git remote prune origin | grep \"\[pruned\]\" | xargs -I % echo % | sed -e 's/\* \[pruned\] origin\///g' | xargs -I % 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
(function (n) { // function has no name, is therefore "anonymous" | |
var i=n*2; | |
if (i > 4) { | |
return undefinedFunc(); // causes a "ReferenceError: undefinedFunc is not defined at Object.<anonymous>" | |
} else { | |
arguments.callee(i); // recurses, adding the anonymous function to the call stack | |
} | |
})(1); | |