Last active
February 19, 2016 23:47
-
-
Save fiddlerwoaroof/2d6fdf9f0dee0f42cea3 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/zsh | |
git add $argv || exit 1 | |
git commit || exit 2 | |
git push || exit 3 | |
exit 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
#!/usr/bin/env python | |
lines = [] | |
try: | |
try: | |
line = raw_input('? ').strip() | |
while line != '.': | |
lines.append(line) | |
line = raw_input('? ').strip() | |
except EOFError: | |
pass | |
with open('.gitignore', 'a') as f: | |
for line in lines: | |
print >> f, line | |
except KeyboardInterrupt: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment