prep 2024

This commit is contained in:
Stefan Harmuth 2024-11-30 11:53:51 +01:00
parent 1a22031b3e
commit 1c5377d765
4 changed files with 4 additions and 29 deletions

View File

@ -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 END -->

View File

@ -5,7 +5,7 @@ import argparse
import importlib
import os
YEAR = 2018
YEAR = 2024
TIMEIT_NUMBER = 50
argument_parser = argparse.ArgumentParser()

View File

@ -1,2 +1,2 @@
shs-tools ~= 0.3
shs-tools ~= 0.4
pre-commit

View File

@ -9,7 +9,7 @@ from tools.tools import human_readable_time_from_delta
import webbrowser
YEAR = 2018
YEAR = 2024
CHARMS = {
'Linux': '/usr/local/bin/charm',
'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'