Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcineverdies/AOC-2023
Advent Of Code 2023
https://github.com/pcineverdies/AOC-2023
advent-of-code advent-of-code-2023 aoc-2023-in-perl aoc-2023-perl perl
Last synced: 6 days ago
JSON representation
Advent Of Code 2023
- Host: GitHub
- URL: https://github.com/pcineverdies/AOC-2023
- Owner: pcineverdies
- Created: 2023-11-29T17:26:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2023-12-17T21:15:14.000Z (7 months ago)
- Last Synced: 2024-03-11T14:31:17.582Z (4 months ago)
- Topics: advent-of-code, advent-of-code-2023, aoc-2023-in-perl, aoc-2023-perl, perl
- Language: Perl
- Homepage:
- Size: 119 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-advent-of-code - pcineverdies/AOC-2023 - 2023--12--17-brightgreen) (2023 / Solutions)
README
# Advent of Code 2023 in Perl
## Usage
To run a (valid) day `n` use
```bash
perl run.pl n
```## Fish trick
As I use `fish` I set the following variable, alias and function
```
set -U AOC_FOLDER ~/Path/To/AOC/
alias --save advent_of_code "cd $AOC_FOLDER; perl run.pl"function advent_of_code_init
cd $AOC_FOLDER; touch inputs/day_$argv.in
cp template.pl src/day_$argv.pl
code $AOC_FOLDER
code inputs/day_$argv.in
code src/day_$argv.pl
end
```