generated from public/aoc_template
prep 2024
This commit is contained in:
parent
1a22031b3e
commit
1c5377d765
27
README.md
27
README.md
@ -1,29 +1,4 @@
|
|||||||
# aoc_template
|
# Advent of Code 2024
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# Want to add AoC-Tiles?
|
|
||||||
|
|
||||||
Author: https://github.com/LiquidFun/aoc_tiles
|
|
||||||
|
|
||||||
- Run `pre-commit install --hook-type post-commit`
|
|
||||||
- In .pre-commit-config.yaml change the --overwrite-year option as needed
|
|
||||||
- Optional: Copy your .session file to session.cookie
|
|
||||||
- For more options see: https://github.com/LiquidFun/aoc_tiles/blob/main/aoc_tiles/config.py
|
|
||||||
|
|
||||||
Tiles will be added to this README between the following lines:
|
|
||||||
<!-- AOC TILES BEGIN -->
|
<!-- AOC TILES BEGIN -->
|
||||||
<!-- AOC TILES END -->
|
<!-- AOC TILES END -->
|
||||||
2
main.py
2
main.py
@ -5,7 +5,7 @@ import argparse
|
|||||||
import importlib
|
import importlib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
YEAR = 2018
|
YEAR = 2024
|
||||||
TIMEIT_NUMBER = 50
|
TIMEIT_NUMBER = 50
|
||||||
|
|
||||||
argument_parser = argparse.ArgumentParser()
|
argument_parser = argparse.ArgumentParser()
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
shs-tools ~= 0.3
|
shs-tools ~= 0.4
|
||||||
pre-commit
|
pre-commit
|
||||||
@ -9,7 +9,7 @@ from tools.tools import human_readable_time_from_delta
|
|||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
|
|
||||||
YEAR = 2018
|
YEAR = 2024
|
||||||
CHARMS = {
|
CHARMS = {
|
||||||
'Linux': '/usr/local/bin/charm',
|
'Linux': '/usr/local/bin/charm',
|
||||||
'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'
|
'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user