Created
January 30, 2014 18:49
-
-
Save miketaylr/8715961 to your computer and use it in GitHub Desktop.
lol @ error-handling
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
# Beautify contents of clipboard and create .js file | |
# on Desktop with name of argument | |
# (requires global uglifyjs installation) | |
barf () { | |
echo "Barfing $1.js to Desktop" | |
pbpaste | uglifyjs -b - > ~/Desktop/$1.js | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment