Skip to content

Instantly share code, notes, and snippets.

@jgonet
Created April 23, 2018 19:50
Show Gist options
  • Save jgonet/244b36c57d86384b076046930510a8cd to your computer and use it in GitHub Desktop.
Save jgonet/244b36c57d86384b076046930510a8cd to your computer and use it in GitHub Desktop.
Keeps you motivated :>
from random import choice
from pathlib import Path
projects = []
try:
home = str(Path.home())
with open(home+'/.projects.txt') as f:
projects = f.readlines()
except FileNotFoundError:
projects.append("nothing ffs")
print(f'DO THE {choice(projects).upper().strip() if len(projects) != 0 else "EVERYTHING"} FFS')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment