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
playerwin = False | |
lives_left = lives | |
while lives_left > 0 : | |
if lives_left == 1: | |
print('Last life! Make it count') | |
else: | |
print(f'You have {lives_left} lives remaining') | |
try: |
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 | |
# Usage: `./gitclone.sh path-to-other-repo.git` | |
eval "git fetch" | |
eval "git remote add origin-remote $1" | |
for branch in $(git branch -r); do | |
cleaned=${branch//origin\//} | |
eval "git checkout $cleaned" | |
eval "git push --set-upstream origin-remote $cleaned" | |
done |