357888e311
day(10): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-10 12:51:01 +01:00
f1c4785890
day(09): refactor
...
• Implement ‹new› for ‹Instruction›
• Pass ‹visited› instead of returning and consuming
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-09 12:20:29 +01:00
d7d3a8f889
day(09): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-09 12:16:10 +01:00
3219400a73
vector2d: implement subtraction of vectors
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-09 12:15:40 +01:00
cb82cbb433
refactor: use generated boilerplate from lib
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 22:45:13 +01:00
f53be47327
solution: adjust after a refactor
...
• publicly export reused imports
• deduce string with the day from the typename
• parse sample separately in the tests
· reason: thread safety when running tests
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 22:36:58 +01:00
10ecf19590
solution: factor out common functionality
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 21:50:50 +01:00
4b97615e6a
day(08): refactor with ‹Vector2D›
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 16:04:16 +01:00
fa7cc5c241
vector2d: implement few traits and helpers
...
• Derive ordering
• Implement indexing over 2D Vec with a ‹Vector2D›
• Implement boundary checks for ‹Vector2D› indices over 2D Vec
• Implement ‹swap› on ‹Vector2D›
• Implement dot product and scalar product for ‹Vector2D›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 16:02:14 +01:00
7b364e35a3
day(08): address DRY
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 12:50:14 +01:00
e419087f1c
day(08): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-08 12:03:57 +01:00
c975a73f7a
cargo: update and remove ‹thiserror›
...
• add ‹regex›
• add ‹lazy_static›
• remove ‹thiserror›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-07 22:56:22 +01:00
59c5970ae1
env: don't print full backtrace
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-07 14:51:11 +01:00
b574bc6999
day(07): remove debugs
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-07 14:50:55 +01:00
b3b26cd6a9
day(07): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-07 14:41:42 +01:00
33185bdae3
day(06): refactor
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-06 10:15:19 +01:00
65ac67b459
day(06): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-06 10:08:24 +01:00
4bbb98661c
day(05): refactor
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-05 11:31:44 +01:00
95df0a175e
day(05): add initial version
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-05 11:24:15 +01:00
6199872dcd
ci: disable docs and pages
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-04 22:15:45 +01:00
da7c05bd1b
day(04): refactor
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-04 14:37:18 +01:00
3a30260c85
day(04): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-04 14:34:38 +01:00
2920960efa
ci: skip linting and don't cache build
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:52:56 +01:00
53cf875f6f
tests: rename to easily distinguish days
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:51:43 +01:00
35ea8ccb22
day(03): make helper functions
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:51:26 +01:00
c96bab1a71
day(03): refactor parsing
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:31:03 +01:00
de1b5d9d5e
day(03): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:12:51 +01:00
82fd747cec
chore(input): deduce the day to be downloaded
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-03 14:12:20 +01:00
eea97c6e7b
day(02): refactor
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-02 15:20:48 +01:00
dbc155fd44
day(02): refine parsing
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-02 11:22:55 +01:00
5e8669da00
day(02): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-02 10:53:33 +01:00
27db9907d4
day(01): use ‹Input›/‹Output› types
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-02 10:23:52 +01:00
43e6948cd7
chore(cargo): optimize runtime
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-02 10:23:18 +01:00
48e69b5c2d
chore(cargo): remove ‹anyhow›
...
Remove ‹anyhow›, since I'm a pepege and want to use ‹color-eyre› that
depends on ‹eyre› and is fork of ‹anyhow›.
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 14:36:10 +01:00
6b1802886d
day(01): use color-eyre for catching errors
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 14:30:42 +01:00
7fb03bf9b2
ci: disable redirect to coverage
...
Doesn't work anyways, because the contents of docs and coverage are not
merged into one public web
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 14:28:54 +01:00
954ab49e28
chore: set up direnv for Rust logs and tracing
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 14:28:07 +01:00
545759f407
ci: add CI
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 12:00:47 +01:00
3ced2ec0e6
day(01): DRY
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 11:30:32 +01:00
1d5c91536c
day(01): convert sample tests to unit tests
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 11:25:31 +01:00
0f6c1af251
day(01): factor out parsing
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 11:23:15 +01:00
604bc5d6a9
day(01): add initial solution
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 11:05:34 +01:00
47cbe771a3
chore: add skeletons and prepary directories
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 11:04:36 +01:00
eddb6111d8
chore: initial commit
...
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-12-01 10:58:21 +01:00