{"id":22006513,"url":"https://github.com/anoff/advent-of-code-2017","last_synced_at":"2026-04-13T19:31:27.239Z","repository":{"id":75748549,"uuid":"112791643","full_name":"anoff/advent-of-code-2017","owner":"anoff","description":"polyglot solutions for the 2017 advent of code challenge","archived":false,"fork":false,"pushed_at":"2017-12-03T20:07:54.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T06:44:45.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/anoff.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":"2017-12-01T22:08:33.000Z","updated_at":"2019-10-15T05:08:50.000Z","dependencies_parsed_at":"2023-06-07T13:45:07.272Z","dependency_job_id":null,"html_url":"https://github.com/anoff/advent-of-code-2017","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anoff/advent-of-code-2017","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoff%2Fadvent-of-code-2017","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoff%2Fadvent-of-code-2017/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoff%2Fadvent-of-code-2017/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoff%2Fadvent-of-code-2017/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoff","download_url":"https://codeload.github.com/anoff/advent-of-code-2017/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoff%2Fadvent-of-code-2017/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-30T01:12:35.862Z","updated_at":"2026-04-13T19:31:27.215Z","avatar_url":"https://github.com/anoff.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# advent of code 2017 🎄🗓\n\n\u003e Solving [adventofcode.com](http://adventofcode.com/2017/about) with a bunch of new languages 🐟\n\n## Challenges 🏋️‍\n\nI want to use the following languages at least once during this course:\n\n* [ ] javascript (node)\n* [ ] typscript\n* [x] golang\n* [ ] bash\n* [ ] rust\n* [x] C\n* [x] F#\n* [ ] Swift\n* [x] Python\n* [ ] Lua\n* [ ] Java\n\n### Docker 🐳\n\nDon't want to put a bunch of compilers and runtimes on my machine so all code should be executable in a docker container. The docker images and run commands are hidden in the [run script](./run).\n\n```sh\n# use the following to run go code\n./run go myfile.go argument1\n# or node\n./run node myfile.js argument1\n```\n\nI tried to select the smallest possible images:\n\n| Language | Image | Size |\n|----------|-------|------|\n| Bash | [alpine:3.7](https://hub.docker.com/_/alpine/) | 4.14MB |\n| C | [frolvlad/alpine-gcc:latest](https://hub.docker.com/r/frolvlad/alpine-gcc/) | 99.2MB |\n| F# | [fsharp:4.1](https://hub.docker.com/_/fsharp/) | 550MB |\n| go | [golang:1.9-alpine](https://hub.docker.com/_/golang/) | 269MB |\n| Java | [anapsix/alpine-java:8_jdk](https://store.docker.com/community/images/anapsix/alpine-java/tags) | 173MB |\n| node | [node:8-alpine](https://hub.docker.com/_/node/) | 65.8MB |\n| python | [python:3-alpine](https://hub.docker.com/_/python/) | 89.1MB |\n| rust | [frolvlad/alpine-rust:latest](https://hub.docker.com/r/frolvlad/alpine-rust/) | 220MB |\n| swift | [swift:4](https://hub.docker.com/_/swift/) | 1.31GB |\n\n## Usage 🏃‍\n\nFor each challenge put the input strings into a file `1.input`, `2.input`, .. and `cat` it into the command when calling the solution.\n\n### Day1\n\n**Language**: `go`\n\n**Usage**: `./run go 1-captcha.go \"$(cat 1.input)\"`\n\nTo run the modified challenge of _half-way round the string_ matching `go run 1-captcha.go 123123 half`\n\n### Day2\n\n**Language**: `python, F#`\n\n**Usage**:\n* `./run python 2-checksum.py \"$(cat 2.input)\"`\n* `./run fs 2-checksum.fs \"$(cat 2.input)\"`\n\n**Part2**:\n* `./run python 2-checksum.py \"$(cat 2.input)\" divisible`\n* `./run fs 2-checksum.fs \"$(cat 2.input)\" divisible`\n\n### Day3\n\n**Language**: `C`\n\n**Usage**: `./run c 3-spiral.c \"$(cat 3.input)\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoff%2Fadvent-of-code-2017","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoff%2Fadvent-of-code-2017","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoff%2Fadvent-of-code-2017/lists"}