If you just want to run a day against the example or real input, save the input to a .txt
file and pipe it to the main program.
$ janet d1/main.janet < path/to/input.txt
With a LISP-y language like Janet, the recommended approach is to connect your editor a REPL and interactively run the code. Here's how to start the REPL.
$ jpm -l janet -e "(import spork/netrepl) (netrepl/server)"
Janet | Solution Comment | |
---|---|---|
1 | 🔔 | Link |
2 | 🔔 | Link |
3 | 🔔 | Link |
4 | 🔔 | Link |
5 | 🔔 | Link |
6 | 🔔 | Link |
7 | 🔔 | Link |
8 | 🔔 | Link |
9 | 🔔 | Link |
10 | 🔔 | Link |
11 | 🔔 | Link |
12 | 🔔 | Link |
13 | 🔔 | Link |
14 | 🔔 | Link |
15 | 🔔 | Link |
16 | 🔔 | Link |
17 | 🔔 | Link |
18 | 🔔 | Link |
19 | 🔔 | Link |
20 | 🔔 | Link |
21 | 💤 | |
22 | 💤 | Link |
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: Janet]
26 lines with `wc -l`.
- [GitHub Repository](https://github.com/cideM/aoc2024-janet)
- [Topaz Paste]()
Add set exrc
to your Neovim configuration, then echo 'let g:copilot_enabled=v:false' > .nvimrc
, open the file and :trust
it.