{"id":16914923,"url":"https://github.com/YAWNICK/MonkeyAOC","last_synced_at":"2025-12-26T18:30:15.799Z","repository":{"id":64346020,"uuid":"572567713","full_name":"YAWNICK/MonkeyAOC","owner":"YAWNICK","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-03T05:40:19.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-03T06:28:46.695Z","etag":null,"topics":["connect-iq","garmin","garmin-connect","monkey-c"],"latest_commit_sha":null,"homepage":"","language":"Monkey 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/YAWNICK.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}},"created_at":"2022-11-30T14:53:30.000Z","updated_at":"2024-12-03T05:40:22.000Z","dependencies_parsed_at":"2023-01-15T13:01:03.763Z","dependency_job_id":null,"html_url":"https://github.com/YAWNICK/MonkeyAOC","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/YAWNICK%2FMonkeyAOC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YAWNICK%2FMonkeyAOC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YAWNICK%2FMonkeyAOC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YAWNICK%2FMonkeyAOC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YAWNICK","download_url":"https://codeload.github.com/YAWNICK/MonkeyAOC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239712569,"owners_count":19684834,"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":["connect-iq","garmin","garmin-connect","monkey-c"],"created_at":"2024-10-13T19:15:38.467Z","updated_at":"2025-12-26T18:30:15.756Z","avatar_url":"https://github.com/YAWNICK.png","language":"Monkey C","funding_links":[],"categories":["Miscellaneous"],"sub_categories":["Older resources"],"readme":"# MonkeyAOC\n\nI've set myself the challenge of solving some 2022 [Advent of Code](https://adventofcode.com/) problems on my Garmin Forerunner 235 with an App written in Monkey C. These are my results.\n\nCheck out the [Youtube Playlist](https://www.youtube.com/playlist?list=PLTB69k7-3oNiRPEnS2kTslHSe-PZ3ixTg) to see the watch in action.\n\n## Goals\n- [x] Solve day 1 part 1\n- [x] Solve day 1 (both parts)\n- [x] Solve more than one day\n- [ ] Solve all days (Seems fairly impossible)\n\n## Solved Days\n```\nDay     1234567\n---------------\nPart 1: *******\nPart 2: *******\n```\n\n## Dev Setup\n\nTo anyone who wants to contribute or use this as a template:\n\nThe `bin` folder is gitignored. I don't know if the monkeyc compiler complains when it's not there.\n\nTo download the input you need an access token. [Here](https://github.com/wimglenn/advent-of-code-wim/issues/1) is how to get it. This is stored in `strings/accesstoken.xml` which should look something like this:\n\n```xml\n\u003cstrings\u003e\n    \u003cstring id=\"Token\"\u003easdfasdf12341234\u003c/string\u003e\n\u003c/strings\u003e\n```\n\n## Learnings to keep in mind\n- `substring`: if the endindex is greater than the length of the string if behaves as if endindex would bave been the length of the string.\n- Strings of length 1 and Chars are not the same. The distinction is `'` for chars and `\"` for strings.\n- It's not possible to use negative indices with arrays (like array[-1]), however this can be used with array.slice() from CIQ version 1.3 (but not with String.substring())\n- String.toCharArray() makes it about 5x larger in memory\n- Booleans seem to be completely separated from all other types. Nothing can be casted to a bool.\n- With Strings always use hashCode and equals\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYAWNICK%2FMonkeyAOC","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYAWNICK%2FMonkeyAOC","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYAWNICK%2FMonkeyAOC/lists"}