This repository is incomplete, since I was trying to do 2024 in Janet. I'm only doing some days in Lua, either for fun or because I hit a roadblock in Janet.
For Fish shell.
$ set -g day "d19"; fd -e lua -e txt --no-ignore | entr -c -s "lua $day/main.lua < $day/in.txt"| Lua | Time | |
|---|---|---|
| 1 | 💤 | |
| 2 | 🔔 | 16m 25s |
| 3 | 💤 | |
| 4 | 🔔 | 16m 05s |
| 5 | 💤 | |
| 6 | 💤 | |
| 7 | 💤 | |
| 8 | 💤 | |
| 9 | 💤 | |
| 10 | 💤 | |
| 11 | 💤 | |
| 12 | 💤 | |
| 13 | 💤 | |
| 14 | 💤 | |
| 15 | 💤 | |
| 16 | 💤 | |
| 17 | 💤 | |
| 18 | 💤 | |
| 19 | 🔔 | 1h 35m 51s |
| 20 | 💤 | |
| 21 | 💤 | |
| 22 | 💤 | |
| 23 | 💤 | |
| 24 | 💤 | |
| 25 | 💤 |
For longer code snippets, use https://topaz.github.io/paste/. If it's short enough, do this:
$ cat code | sed 's/^/ /' | xsel -b
$ cat code | sed 's/^/ /' | pbcopy
[LANGUAGE: Lua]
60 lines of code according to `tokei` when formatted with `stylua`.
- [GitHub Repository](https://github.com/cideM/aoc2024-lua)
- [Topaz Paste]()
Add set exrc to your Neovim configuration, then echo 'let g:copilot_enabled=v:false' > .nvimrc, open the file and :trust it.