Also see my Zig solutions!
$ fd . --no-hidden --no-ignore | entr -c -s 'lua d6/main.lua < d6/input.txt'
Lua | |
---|---|
1 | 🔔 |
2 | 🔔 |
3 | 🔔 |
4 | 🔔 |
5 | 🔔 |
6 | 🔔 |
7 | 🔔 |
8 | 🔔 |
9 | 🔔 |
10 | 🔔 |
11 | 🔔 |
12 | 🔔 |
13 | 🔔 |
14 | 🔔 |
15 | 🔔 |
16 | 🔔 |
17 | 🔔 |
18 | 🔔 |
19 | 🔔 |
20 | 🔔 |
21 | 🔔 |
22 | 🔔 |
23 | 🔔 |
24 | 🔔 |
25 | 🔔 |
Post code on Reddit, first for Linux, second for MacOS.
$ cat code | sed 's/^/ /' | xsel -b`
$ cat code | sed 's/^/ /' | pbcopy`
Turn it into a message:
# [Lua]()
60 lines of code according to `tokei` when formatted with `stylua`.
[GitHub Repository](https://github.com/cideM/aoc2022)