{"id":16321198,"url":"https://github.com/beeb/aoc-2023","last_synced_at":"2025-10-31T18:30:25.220Z","repository":{"id":209838025,"uuid":"725065462","full_name":"beeb/aoc-2023","owner":"beeb","description":"My solutions for Advent of Code 2023","archived":false,"fork":false,"pushed_at":"2023-12-25T09:17:33.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T19:23:53.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-29T11:15:09.000Z","updated_at":"2023-11-29T11:15:15.000Z","dependencies_parsed_at":"2023-12-10T12:25:54.211Z","dependency_job_id":"76082bd6-9b34-409a-a762-4c5e7b33b469","html_url":"https://github.com/beeb/aoc-2023","commit_stats":null,"previous_names":["beeb/aoc-2023"],"tags_count":0,"template":false,"template_full_name":"beeb/aoc-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeb%2Faoc-2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeb%2Faoc-2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeb%2Faoc-2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeb%2Faoc-2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beeb","download_url":"https://codeload.github.com/beeb/aoc-2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239221174,"owners_count":19602380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T22:46:59.852Z","updated_at":"2025-10-31T18:30:25.163Z","avatar_url":"https://github.com/beeb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Largely copied from [RikvanToor/aoc-rust-template](https://github.com/RikvanToor/aoc-rust-template), upgraded for `clap` v4\n\n# Advent of Code Rust template\n\nThis is a basic template you can fork and implement your Advent of Code solutions in. `src/days/` contains a source file for all 25 days, where an implementation of a trait `Day` should be written.\n\n```rust\npub trait Day {\n  type Input;\n\n  fn parse(input_string: \u0026str) -\u003e IResult\u003c\u0026str, Self::Input\u003e;\n\n  type Output1: Display;\n\n  fn part_1(input: \u0026Self::Input) -\u003e Self::Output1;\n\n  type Output2: Display;\n\n  fn part_2(input: \u0026Self::Input) -\u003e Self::Output2;\n}\n```\n\nThe parsers should be written using [nom](https://docs.rs/nom/latest/nom/).\n\n## Dev shell\n\nA `flake.nix` provides a [nix](https://nixos.org/) dev shell with the rust toolchain installed.\nEnter the shell by running `nix develop` (requires the `nix-command` and `flakes`\n[experimental features](https://nixos.wiki/wiki/Flakes))\n\n## Usage\n\nFirst, modify the package metadata in `Cargo.toml` and change the current `YEAR` constant in `src/main.rs`.\n\nThen, find your session cookie. To do so, go to [https://adventofcode.com](adventofcode.com), log in, and press F12. In the \"Application\" tab, under \"Storage \u003e Cookies \u003e https://adventofcode.com\", copy the value of the \"session\" cookie. Paste it into a file named `.session` at the root of the project. You can now download input files. To do so, run the subcommand `get-input`: `cargo run -- get-input 1`. The `1` stands for day 1, meaning it will download the input of day 1 of Advent of Code. Alternatively, from december 1st to 25th, you can skip the day parameter, and the program will download today's input. You can also use `--all` instead of a day parameter to download all input files.\n\nTo run your implementation, use `cargo run -- run 1` to run day 1. Just like `get-input`, you can skip the day parameter to run today's program, or use `--all` to run all days.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeb%2Faoc-2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeeb%2Faoc-2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeb%2Faoc-2023/lists"}