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: 4 months 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T21:15:14.000Z (over 2 years ago)
- Last Synced: 2024-07-01T21:31:18.763Z (almost 2 years 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
Awesome Lists containing this project
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
```