generated from public/aoc_template
AoC 2023 prep
This commit is contained in:
parent
80cc9447bd
commit
e1d3558c50
17
README.md
17
README.md
@ -1,16 +1 @@
|
||||
# aoc_template
|
||||
|
||||
Template for yearly AoC-Repositories
|
||||
|
||||
# Usage
|
||||
|
||||
- Clone repository (or use as template in gitea)
|
||||
- Run `pip install -r requirements.txt`
|
||||
- Update main.py and start_day.py: set YEAR (near the top) to the respective year
|
||||
- Create a file named ".session" next to your main.py containing the contents of your aoc-session cookie
|
||||
|
||||
On a given day, just call `./start_day.py -d <day_of_month>`
|
||||
|
||||
# Not using PyCharm?
|
||||
|
||||
Just comment out the call() to CHARMS near the end of start_day.py
|
||||
# aoc2ß23
|
||||
|
||||
2
main.py
2
main.py
@ -5,7 +5,7 @@ import argparse
|
||||
import importlib
|
||||
import os
|
||||
|
||||
YEAR = 2018
|
||||
YEAR = 2023
|
||||
TIMEIT_NUMBER = 50
|
||||
|
||||
argument_parser = argparse.ArgumentParser()
|
||||
|
||||
@ -8,7 +8,7 @@ from time import sleep
|
||||
import webbrowser
|
||||
|
||||
|
||||
YEAR = 2018
|
||||
YEAR = 2023
|
||||
CHARMS = {
|
||||
'Linux': '/usr/local/bin/charm',
|
||||
'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user