{"id":21871335,"url":"https://github.com/sheinxy/advent-of-code","last_synced_at":"2025-04-14T23:55:39.699Z","repository":{"id":210123201,"uuid":"725800162","full_name":"Sheinxy/Advent-Of-Code","owner":"Sheinxy","description":"Advent Of Code","archived":false,"fork":false,"pushed_at":"2025-03-30T22:00:42.000Z","size":6341,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:55:20.992Z","etag":null,"topics":["advent-of-code","advent-of-code-2023","advent-of-code-2023-haskell","advent-of-code-2024","advent-of-code-2024-haskell","advent-of-code-haskell","advent-of-code-in-haskell","aoc","aoc-haskell","aoc2023","aoc2024","haskell"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/Sheinxy.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-30T22:38:31.000Z","updated_at":"2025-03-30T22:00:45.000Z","dependencies_parsed_at":"2023-12-29T08:24:10.857Z","dependency_job_id":"5c4ac384-ead7-4e31-aa2d-caa641a60662","html_url":"https://github.com/Sheinxy/Advent-Of-Code","commit_stats":null,"previous_names":["sheinxy/advent-of-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheinxy%2FAdvent-Of-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheinxy%2FAdvent-Of-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheinxy%2FAdvent-Of-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheinxy%2FAdvent-Of-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sheinxy","download_url":"https://codeload.github.com/Sheinxy/Advent-Of-Code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981261,"owners_count":21193144,"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":["advent-of-code","advent-of-code-2023","advent-of-code-2023-haskell","advent-of-code-2024","advent-of-code-2024-haskell","advent-of-code-haskell","advent-of-code-in-haskell","aoc","aoc-haskell","aoc2023","aoc2024","haskell"],"created_at":"2024-11-28T06:13:59.123Z","updated_at":"2025-04-14T23:55:39.676Z","avatar_url":"https://github.com/Sheinxy.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction  \n\nHello there!  \n\nThis repository contains my solutions for the [Advent of Code](https://adventofcode.com/).  \n\nI've been participating since 2020 and writing up solutions since 2022.  \n\n# Language  \n\nMy language of choice for these puzzles is [Haskell](https://en.wikipedia.org/wiki/Haskell).  \n\nHowever, keep in mind that I have no formal education in Haskell—I'm still learning the language.\nAs a result, my code may not always be the smartest, cleanest, or most optimised.\nI'm just a guy having fun with Haskell!  \n\n# Running My Solutions  \n\nFrom 2020 to 2022, my solutions were standalone.\nTo run them, simply compile each day's solution using `ghc` and execute it with\nan `input.txt` file in the same directory as the executable.  \n\nFor 2023 and 2024, solutions remained standalone but now expect arguments when\nrunning the executable. The last argument should be the input file,\nwhile the others specify which part to run (typically `\"one\"` and `\"two\"`, but the code is flexible).  \n\nMore recently, I’ve been working on structuring each year as a single executable,\nwith the entire repository set up as a Cabal project, alongside a library.  \n\n### Running Examples  \n\nTo run **Day 3, Parts One and Two** of 2015 with `file.txt` as input:  \n```sh\ncabal run AOC2015 03 one two file.txt\n```  \n\nTo run multiple days, separate them with `/`:  \n```sh\ncabal run AOC2015 03 one two file.txt / 04 one two file.txt\n```  \n\nTo use the default input location (e.g., `./2015/13.txt`), use `d` as the filename:  \n```sh\n# If your input file is actually named \"d\" (or something like \"def\" or \"default\"),\n# you’ll need to specify it as \"./d\"\ncabal run AOC2015 13 one two d\n```  \n\nTo submit an answer using my AOC library, use `sone` or `stwo`:  \n```sh\n# You'll need to export the environment variable AOC_SESSION, beware when doing that\ncabal run AOC2015 23 sone d\n```\n\n# Shell scripts\n\nI have a few helper shell scripts, however only ywo are really of interest here:\n- `./shell-utils/init_year.sh [-y|--year YEAR] [YEAR]: setups everything for a given year (defaults to the current year)`\n- `./shell-utils/retrieve_input.sh [-d|--day DAY] [--dry-run] [-nn|--no-new-dir] [-y|--year YEAD] [DAY]: retrieves the input for a give day and year (defaults to the current one). Dry runs will only print the year and day. If -nn is activated, the input will be places under the ./inputs folder, otherwise under the ./$YEAR/inputs one.`\n\n# Write-Ups  \n\nI've been writing up solutions since 2022. (Though I only covered the first few days in 2022, 2023 onward is complete.)  \n\n- [2022](https://github.com/Sheinxy/Advent2022)  \n- [2023](./2023)  \n- [2024](./2024)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheinxy%2Fadvent-of-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheinxy%2Fadvent-of-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheinxy%2Fadvent-of-code/lists"}