{"id":34899439,"url":"https://github.com/narimiran/aoc-utils","last_synced_at":"2025-12-26T08:29:31.856Z","repository":{"id":322879048,"uuid":"1091277699","full_name":"narimiran/aoc-utils","owner":"narimiran","description":"Helper functions for Advent of Code","archived":false,"fork":false,"pushed_at":"2025-12-11T17:20:46.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-12T22:10:13.036Z","etag":null,"topics":["advent-of-code","adventofcode","aoc","clojure","clojure-library","helper","helper-functions","helpers","utilities","utility-library","utils"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/narimiran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-06T19:53:52.000Z","updated_at":"2025-12-11T17:20:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/narimiran/aoc-utils","commit_stats":null,"previous_names":["narimiran/aoc-utils"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/narimiran/aoc-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narimiran%2Faoc-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narimiran%2Faoc-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narimiran%2Faoc-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narimiran%2Faoc-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narimiran","download_url":"https://codeload.github.com/narimiran/aoc-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narimiran%2Faoc-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28050244,"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","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["advent-of-code","adventofcode","aoc","clojure","clojure-library","helper","helper-functions","helpers","utilities","utility-library","utils"],"created_at":"2025-12-26T08:29:31.045Z","updated_at":"2025-12-26T08:29:31.847Z","avatar_url":"https://github.com/narimiran.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AoC Utils: Helper functions for Advent of Code\n\n\nThese are some helper functions which I have collected\n(and changed and, hopefully, improved) over the years of solving\nAdvent of Code in Clojure.\n\nI usually kept them inside of each AoC repo, but now I have decided\nto make a package out of it because of two reasons:\n- now I don't have to copy-paste it every year, and due to some modifications\n  end up with several slightly different versions of the same thing\n- maybe there's somebody else who finds this useful and uses it for\n  their AoC solving.\n  \n  \n  \n## Installing\n\nAdd the following to your `deps.edn` file:\n\n``` clojure\n{:deps\n  ; other deps\n  ,,,\n  ; check the latest tag and sha in the releases/tags: \n  ; https://github.com/narimiran/aoc-utils/tags\n  com.github.narimiran/aoc-utils {:git/tag \"v0.9.3\" :git/sha \"e951804\"}\n}\n```\n\n\n  \n## Usage\n\n``` clojure\n(ns day01\n  (:require [aoc-utils.core :as aoc]))\n\n(-\u003e\u003e (aoc/parse-lines (aoc/read-input 1) row-parsing-function)\n     (aoc/sum-by row-function)\n```\n\nOr take a look how I used this library in my AoC solutions:\n- [AoC 2019](https://github.com/narimiran/AdventOfCode2019/tree/master/clojure)\n- [AoC 2023](https://github.com/narimiran/AdventOfCode2023/tree/main/clojure)\n- [AoC 2024](https://narimiran.github.io/aoc2024/)\n- [AoC 2025](https://narimiran.github.io/aoc2025/)\n\n\n\n## Documentation\n\nThe documentation is available at:\nhttps://narimiran.github.io/aoc-utils\n\n\n\n\n## FAQ\n\n\u003e Why is there no function to automatically retrieve input file for a given task?\n\nBecause I'm oldschool and I never used such functions/tools.\nI like to visually inspect the input file before I manually copy it.\n\nIf I get the information that this repo has more users than just myself\n(and they would like to have it), I'll consider adding it.\n\n\n\u0026nbsp;\n\n\n\u003e Why does the `read-input` function use (this) hard-coded location of inputs?\n\nBecause my AoC repos usually contain solutions in multiple languages and I keep\ninputs external to all of them, like this:\n\n``` shell\n.\n├── clojure\n│   ├── deps.edn\n│   └── src\n│       ├── day01.clj\n│       └── day02.clj\n├── inputs\n│   ├── 01.txt\n│   └── 02.txt\n├── python\n│   ├── day01.py\n│   └── day02.py\n├── LICENSE.txt\n└── README.md\n```\n\nIf your repo has a different structure, it is probably the best to not use the\n`read-input` function and to use `slurp` directly.\nOr write your own version of the function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarimiran%2Faoc-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarimiran%2Faoc-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarimiran%2Faoc-utils/lists"}