{"id":15105975,"url":"https://github.com/imawizard/measureup2anki","last_synced_at":"2026-02-04T10:19:58.662Z","repository":{"id":238115159,"uuid":"789718181","full_name":"imawizard/measureup2anki","owner":"imawizard","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-30T12:02:27.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:28:35.627Z","etag":null,"topics":["anki","measureup"],"latest_commit_sha":null,"homepage":"","language":"Go","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/imawizard.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":"2024-04-21T11:14:43.000Z","updated_at":"2024-09-30T12:02:30.000Z","dependencies_parsed_at":"2024-05-04T12:36:21.650Z","dependency_job_id":"9a8474e4-07a6-4118-a7d9-0ef9b2eefddc","html_url":"https://github.com/imawizard/measureup2anki","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"378e896f914f22e34d0dcd3c0213531ebc8b0781"},"previous_names":["imawizard/measureup2anki"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imawizard/measureup2anki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imawizard%2Fmeasureup2anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imawizard%2Fmeasureup2anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imawizard%2Fmeasureup2anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imawizard%2Fmeasureup2anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imawizard","download_url":"https://codeload.github.com/imawizard/measureup2anki/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imawizard%2Fmeasureup2anki/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262566829,"owners_count":23329681,"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":["anki","measureup"],"created_at":"2024-09-25T21:00:26.866Z","updated_at":"2026-02-04T10:19:53.639Z","avatar_url":"https://github.com/imawizard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# measureup2anki\n\nis just a small tool to help importing your bought MeasureUp tests into Anki.\n\n## Usage\n\n1. Log into your MeasureUp account\n2. Open the learning locker\n3. Get your `PHPSESSID` e.g. from the Developer Tools' network tab\n4. Clone the repository and run the tool with:\n\n```sh\ngit clone https://github.com/imawizard/measureup2anki measureup2anki \u0026\u0026 cd $_\ngo run . dump $COOKIE [$TEST] # Insert your PHPSESSID here\n                              # Leave 2nd param empty to get a list instead\ngo run . produce [$TEST]\n```\n\n5. Create a deck in Anki and set up the card type\n6. Import the .csv in `/out` into the Anki deck\n\n## Anki Card\n\n### Front Template\n\n```html\n{{Text}}\n\n{{#Image}}\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t{{Image}}\n{{/Image}}\n\n\u003cul\u003e\n\t\u003cdiv id=\"option-1\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-2\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-3\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-4\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-5\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-6\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-7\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-8\" class=\"option front hidden\"\u003e\u003c/div\u003e\n\u003c/ul\u003e\n\n{{#Exhibits}}\n\t\u003chr id=\"exhibits\"\u003e\n\t{{Exhibits}}\n{{/Exhibits}}\n\n\u003cscript\u003e\n\nvar get = (i) =\u003e document.getElementById(\"option-\" + i);\nvar show = (el) =\u003e el.classList.remove(\"hidden\");\n\nvar options = [\n\t`{{Option-1}}`,\n\t`{{Option-2}}`,\n\t`{{Option-3}}`,\n\t`{{Option-4}}`,\n\t`{{Option-5}}`,\n\t`{{Option-6}}`,\n\t`{{Option-7}}`,\n\t`{{Option-8}}`,\n].filter(o =\u003e String(o));\n\noptions\n\t.map((o, i) =\u003e [\"{{Type}}\" !== \"liveScreen\" ? Math.random() * options.length : i, o])\n\t.sort()\n\t.map(p =\u003e p[1])\n\t.forEach((o, i) =\u003e {\n\t\tvar el = get(i + 1);\n\t\tshow(el);\n\t\tel.innerHTML = \"\u003cli\u003e\" + o + \"\u003c/li\u003e\";\n\t});\n\n\u003c/script\u003e\n```\n\n### Back Template\n\n```html\n\u003cdiv id=\"answer\"\u003e\u003c/div\u003e\n{{Image}}\n\n\u003cul\u003e\n\t\u003cdiv id=\"option-1\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-1}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-2\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-2}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-3\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-3}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-4\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-4}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-5\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-5}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-6\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-6}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-7\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-7}}\u003c/li\u003e\u003c/div\u003e\n\t\u003cdiv id=\"option-8\" class=\"option back hidden\"\u003e\u003cli\u003e{{Option-8}}\u003c/li\u003e\u003c/div\u003e\n\u003c/ul\u003e\n\n\u003chr id=\"explanation\"\u003e\n\n{{Explanation}}\n\n\u003cscript\u003e\n\nvar get = (i) =\u003e document.getElementById(\"option-\" + i);\nvar getAll = () =\u003e Array.of(...document.getElementsByClassName(\"option\"));\nvar show = (el) =\u003e el.classList.remove(\"hidden\");\nvar wrong = (el) =\u003e el.classList.add(\"wrong\");\n\nvar answer = {{Answer}};\n\nswitch (\"{{Type}}\") {\ncase \"singleChoice\":\n  show(get(answer));\n\tbreak;\ncase \"multipleChoice\":\n\tanswer.forEach((i) =\u003e show(get(i)));\n\tbreak;\ncase \"contentTable\":\n\tgetAll().forEach((el, i) =\u003e {\n\t\tif (el.textContent == \"\") {\n\t\t\treturn;\n\t\t}\n\t\tshow(el);\n\t\tif (!answer.includes(i)) {\n\t\t\twrong(el);\n\t\t}\n\t});\n\tbreak;\ncase \"liveScreen\":\n\tfor (var i = 1; i \u003c= answer.length; i++) {\n\t\tvar el = get(i);\n\t\tshow(el);\n\t\tvar il = el.children[0];\n\t\til.innerHTML = il.innerHTML.split(\" ╱ \")[answer[i - 1]];\n\t}\n\tbreak;\ncase \"buildList\":\ncase \"buildListReorder\":\n\t// Do nothing as the explanation already includes the answer.\ncase \"selectPlaceMup\":\n\t// Do nothing, just show the explanation.\n\tbreak;\n}\n\n\u003c/script\u003e\n```\n\n### Styling\n\n```css\n.card {\n  font-family: arial;\n  font-size: 18px;\n  text-align: left;\n  color: black;\n  background-color: white;\n}\n\n.option {\n  list-style-type: circle;\n}\n\n.option.back {\n}\n\n.image {\n  border: solid 1px;\n  background: white;\n  border-radius: 4px;\n}\n\n.exhibit {\n  border: solid 1px;\n  background: white;\n  border-radius: 4px;\n}\n\n.hidden {\n  display: none;\n}\n\n.wrong {\n  text-decoration: line-through;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimawizard%2Fmeasureup2anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimawizard%2Fmeasureup2anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimawizard%2Fmeasureup2anki/lists"}