diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2023-12-06 03:27:00 +0200 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-10-28 23:20:45 +0200 |
| commit | 76ba3711e9a131dbc71bdfc8b0ab20186fb08087 (patch) | |
| tree | dcfcf73dfeeb1a47d13dd10cb8e54ef2a4d00515 /init.sh | |
| parent | removing inputs (diff) | |
| download | aoc23-76ba3711e9a131dbc71bdfc8b0ab20186fb08087.tar.gz aoc23-76ba3711e9a131dbc71bdfc8b0ab20186fb08087.zip | |
create template file and update init script
Diffstat (limited to 'init.sh')
| -rwxr-xr-x | init.sh | 23 |
1 files changed, 1 insertions, 22 deletions
| @@ -14,26 +14,5 @@ echo "Initializing day $DAY in directory $DIR" | |||
| 14 | 14 | ||
| 15 | mkdir -p $DIR && | 15 | mkdir -p $DIR && |
| 16 | curl "https://adventofcode.com/$YEAR/day/$DAY/input" -H "Cookie: session=$ADVENT_SESSION" >$DIR/input.txt | 16 | curl "https://adventofcode.com/$YEAR/day/$DAY/input" -H "Cookie: session=$ADVENT_SESSION" >$DIR/input.txt |
| 17 | echo \ | ||
| 18 | 'const std = @import("std"); | ||
| 19 | const print = std.debug.print; | ||
| 20 | const assert = std.debug.assert; | ||
| 21 | const ArrayList = std.ArrayList; | ||
| 22 | const mem = std.mem; | ||
| 23 | 17 | ||
| 24 | const fin = mem.trim(u8, @embedFile("./input.txt"), &std.ascii.whitespace); | 18 | cp -n ./template.zig $DIR/solution.zig |
| 25 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | ||
| 26 | const allocator = gpa.allocator(); | ||
| 27 | |||
| 28 | pub fn part1() void { | ||
| 29 | |||
| 30 | } | ||
| 31 | |||
| 32 | pub fn part2() void { | ||
| 33 | |||
| 34 | } | ||
| 35 | |||
| 36 | pub fn main() !void { | ||
| 37 | part1(); | ||
| 38 | part2(); | ||
| 39 | }' >$DIR/solution.zig | ||
