aoc-cl/README.org

61 lines
1.2 KiB
Org Mode
Raw Normal View History

2024-11-17 22:32:08 +01:00
* Aoc - Advent of Code challenges and solutions.
** Usage
** Installation
2024-11-17 22:58:27 +01:00
The app relies on ~AOC_SESSION~ environment variable with the session
value from the cookie when logged in to the Advent of Code site. I
recommend using a ~.envrc~ file and the *pass* password manager to
store the secret :
#+BEGIN_SRC shell
export AOC_SESSION=$(pass snamellit/advent-of-code)
#+END_SRC
2024-11-17 22:32:08 +01:00
** Author
+ Peter Tillemans (pti@snamellit.com)
2024-11-17 22:37:55 +01:00
** Implementation Notes:
2024-11-17 22:58:27 +01:00
*** Notable Utilities
**** ~aoc:test-input <year> <day>~
Fetches the test input for the given day in the given year.
2024-11-17 22:37:55 +01:00
*** Used dependencies
**** Dexador
A comprehensive HTTP client library.
[[https://github.com/fukamachi/dexador][GitHub repository with documentation]]
2024-11-17 22:58:27 +01:00
The library leverages the *cl-cookie* library for cookie management.
2024-11-30 15:48:59 +01:00
**** 3d-vector
see [[https://shinmera.github.io/3d-vectors/][github pages for 3d-vectors libraray]].
offer 2, 3 and 4 component vectors
- constructor : vec , e.g. (vec 1 2 3) --> vec3
- operators : v+, v-, v*, v/
- operators applied on first vector : nv+, nv-, nv*, nv/
- manhattan : v1norm
- euclides: v2norm
2024-11-17 22:32:08 +01:00
** Copyright
Copyright (c) 2024 Peter Tillemans (pti@snamellit.com)
** License
Licensed under the MIT License.