quick link generator, for the reddit solution posts

This commit is contained in:
s-prechtl 2022-12-10 17:41:18 +01:00
parent 76e8997ecc
commit ddb9cc5bf9

8
linkgenerator.py Normal file
View file

@ -0,0 +1,8 @@
if __name__ == '__main__':
# https://github.com/s-prechtl/AdventOfCode/tree/master/2022/Day10
user = "s-prechtl"
repo = "AdventOfCode"
branch = "master"
year = 2022
day = input("Day: ")
print(f"https://github.com/{user}/{repo}/tree/{branch}/{year}/Day{day}")