{"id":16344296,"url":"https://github.com/cidem/aoc2020","last_synced_at":"2025-11-06T19:30:33.406Z","repository":{"id":118784929,"uuid":"316459531","full_name":"cideM/aoc2020","owner":"cideM","description":"Advent of Code 2020","archived":false,"fork":false,"pushed_at":"2022-12-24T15:06:10.000Z","size":796,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-27T19:16:09.574Z","etag":null,"topics":["advent","advent-of-code","advent-of-code-2020","aoc2020","haskell","lua"],"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/cideM.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":"2020-11-27T09:41:13.000Z","updated_at":"2022-12-24T15:06:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbfffaae-e578-449c-a45f-9ae5e40254c2","html_url":"https://github.com/cideM/aoc2020","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Faoc2020","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Faoc2020/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Faoc2020/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Faoc2020/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cideM","download_url":"https://codeload.github.com/cideM/aoc2020/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239501668,"owners_count":19649495,"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","advent-of-code","advent-of-code-2020","aoc2020","haskell","lua"],"created_at":"2024-10-11T00:27:45.663Z","updated_at":"2025-11-06T19:30:33.354Z","avatar_url":"https://github.com/cideM.png","language":"Haskell","readme":"# :christmas_tree: Advent of Code 2020 :santa:\n\n## Intro\n\nThis repository contains my solutions for Advent of Code 2020 in whatever languages I feel like. Every solution is a single file which you can just run like this `./d2/d2.hs` or `./d2/d2.lua`. The code always starts with a shebang line that runs the code in a Nix shell. That means you don't need to install anything, it's all temporary and self-contained.\n\nThe Clojure is to be run by opening the file in your favorite editor and interactively evaluating things. No shebang here.\n\nThere are also a few other tools installed for you in the base Nix shell, such as `ormolu` for formatting Haskell and `hlint` for linting, and so on.\n\n## Preparation\n\nStart `cat` and wait for input\n\n```shell\n$ mkdir d2\n$ cat \u003e d2/input.txt\n```\n\nReload and run\n\n```shell\n$ echo \"d2/d2.hs\" | entr -sc \"cat d2/input.txt | ./d2/d2.hs\"\n```\n\n## Progress (25/25)\n\n|     | Haskell | Lua     | Clojure |\n| --- | ------- | ------- | ------- |\n| 1   | :bell:  | :bell:  | :zzz:   |\n| 2   | :bell:  | :bell:  | :zzz:   |\n| 3   | :bell:  | :bell:  | :zzz:   |\n| 4   | :bell:  | :bell:  | :zzz:   |\n| 5   | :bell:  | :zzz:   | :zzz:   |\n| 6   | :bell:  | :zzz:   | :zzz:   |\n| 7   | :bell:  | :zzz:   | :zzz:   |\n| 8   | :bell:  | :zzz:   | :zzz:   |\n| 9   | :zzz:   | :bell:  | :zzz:   |\n| 10  | :bell:  | :zzz:   | :zzz:   |\n| 11  | :bell:  | :zzz:   | :zzz:   |\n| 12  | :bell:  | :zzz:   | :zzz:   |\n| 13  | :zzz:   | :zzz:   | :bell:  |\n| 14  | :zzz:   | :zzz:   | :bell:  |\n| 15  | :zzz:   | :zzz:   | :bell:  |\n| 16  | :zzz:   | :zzz:   | :bell:  |\n| 17  | :zzz:   | :zzz:   | :bell:  |\n| 18  | :bell:  | :zzz:   | :zzz:   |\n| 19  | :bell:  | :zzz:   | :zzz:   |\n| 20  | :bell:  | :zzz:   | :zzz:   |\n| 21  | :bell:  | :zzz:   | :zzz:   |\n| 22  | :bell:  | :zzz:   | :zzz:   |\n| 23  | :bell:  | :zzz:   | :zzz:   |\n| 24  | :bell:  | :zzz:   | :zzz:   |\n| 25  | :bell:  | :zzz:   | :zzz:   |\n\n## Misc\n\nPost code on reddit (use `pbcopy` on MacOS)\n\n```\n$ cat code | sed 's/^/    /' | xsel -b`\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Faoc2020","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcidem%2Faoc2020","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Faoc2020/lists"}