Advent of Code solution repository.
Should you want to use my template repository, head to vorban/laravel-advent-of-code.
This is not made to be hosted. This is a compilation of my solutions to the Advent of Code, using Laravel and PHP.
Solutions are found in app/Solutions.
Released under the MIT License. See LICENSE.
Copyright ©️ 2023 Valentin Orban
This repository does follow the automation guidelines on the /r/adventofcode community wiki. Specifically:
- No automation is provided
- Outbound calls to the /events endpoint are cached for 24h (see
app/Console/UpdateBadgesCommand.php
) - Once inputs are downloaded, they are cached locally indefinitly (see
app/Console/PrepareCommand
) - The User-Agent header is set to me
This template repository is provided as-is, as detailed in the LICENSE file.
It is a showcase of my skills, not a project that aims to be hosted.
Although a Laravel application, this code is not fit to be hosted. Specifically, the code as-is is not fit for any kind of automation or production environments.
Go to vorban/laravel-advent-of-code and follow instructions.
git clone [email protected]:vorban/advent-of-code.git
cd advent-of-code
cp .env.example .env
docker run --rm --interactive --tty --volume $PWD:/app composer install
vendor/bin/sail up -d
echo Enjoy!
composer install
echo Enjoy!
Use sail
or php
depending on wether you want to use docker or not.
# generate code file and download input
sail artisan aoc:prepare {year} {day}
# hopefully first try !
sail artisan aoc:run {year} {day} {--example}
# once you're done for the day
sail artisan aoc:update-badges