{"id":20500082,"url":"https://github.com/zevaverbach/binary_quiz","last_synced_at":"2026-04-22T09:01:57.659Z","repository":{"id":50166502,"uuid":"271975035","full_name":"zevaverbach/binary_quiz","owner":"zevaverbach","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T10:44:41.000Z","size":839,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T20:11:32.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zevaverbach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-13T09:03:57.000Z","updated_at":"2020-06-14T08:35:19.000Z","dependencies_parsed_at":"2023-01-25T08:01:26.906Z","dependency_job_id":null,"html_url":"https://github.com/zevaverbach/binary_quiz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zevaverbach/binary_quiz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevaverbach%2Fbinary_quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevaverbach%2Fbinary_quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevaverbach%2Fbinary_quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevaverbach%2Fbinary_quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zevaverbach","download_url":"https://codeload.github.com/zevaverbach/binary_quiz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevaverbach%2Fbinary_quiz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32128704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"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-15T18:19:45.258Z","updated_at":"2026-04-22T09:01:57.630Z","avatar_url":"https://github.com/zevaverbach.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binary Quiz\n\n## Description\n\nA command line application and Python library for generating binary numbers for a human to decode, as well as generating the integers they represent, to check the human's work.\n\n## Compatibility\n\nCurrently only supported on MacOS and Linux\n\n## Installation on MacOS or Linux\n1) `brew install ghostscript` ([install homebrew](https://brew.sh) if needed)\n2) `brew install enscript`\n3) `pip install binary-quiz`\n\n## Usage\n```\nbinary [OPTIONS] BITS NUM_PROBLEMS\n\nOptions:\n  --pdf\n  --silent\n  --include-answers\n  --output-filepath TEXT\n  --num-columns INTEGER\n  --font-size INTEGER\n  --help                  Show this message and exit.\n\n```\n\n## Examples of Output\n\n### PDF\n\n```shell\n$ binary 8 100 --pdf\n```\n\n👆👆 this command produces two PDFs like this 👇👇\n\n[![example of problems.pdf output](https://github.com/zevaverbach/binary_quiz/blob/master/examples/problems.png)](https://github.com/zevaverbach/binary_quiz/blob/master/examples/problems.pdf)\n[![example of problems-answers.pdf output](https://github.com/zevaverbach/binary_quiz/blob/master/examples/problems-answers.png)](https://github.com/zevaverbach/binary_quiz/blob/master/examples/problems-answers.pdf)\n\n### stdout\n\n```shell\n00011110\n\n00111000\n\n11101000\n\n11110000\n\n01011101\n\n01100110\n\n01010010\n\n01110010\n\n10101001\n\n10001010\n\n10010010\n\n11111101\n\n10001110\n\n01111111\n\n00001110\n\n11101011\n\n00010011\n\n00101000\n\n01011010\n\n01001001\n\n01011101\n\n11000011\n\n10000000\n\n11011001\n\n10000110\n\n00000101\n\n11110100\n\n11000010\n\n00110000\n\n11010110\n\n10100101\n\n01000100\n\n00011000\n\n11111111\n\n00111100\n\n00010010\n\n01101111\n\n10101001\n\n10001011\n\n00011011\n\n11010011\n\n01001000\n\n01011111\n\n01010101\n\n10111011\n\n11100010\n\n10011010\n\n10011110\n\n11000010\n\n10001110\n\n11100101\n\n11000101\n\n01001001\n\n01100010\n\n10010001\n\n01110110\n\n11000100\n\n11101101\n\n10000111\n\n10010111\n\n10111100\n\n01001111\n\n10001001\n\n00111001\n\n10001011\n\n10110110\n\n10001001\n\n10100100\n\n01110000\n\n01110001\n\n01111100\n\n10001101\n\n00010000\n\n11001110\n\n01011010\n\n01110000\n\n10000101\n\n01110001\n\n10100110\n\n01010001\n\n00100100\n\n11011011\n\n00011000\n\n11010110\n\n01000001\n\n00111101\n\n11010010\n\n01001110\n\n01100001\n\n10100100\n\n10110100\n\n01000000\n\n00100010\n\n01101010\n\n10000001\n\n11111100\n\n10010011\n\n11001011\n\n11001010\n\n01011100\n*BEGIN ANSWERS*\n00011110 | 30 \n\n00111000 | 56 \n\n11101000 | 232 \n\n11110000 | 240 \n\n01011101 | 93 \n\n01100110 | 102 \n\n01010010 | 82 \n\n01110010 | 114 \n\n10101001 | 169 \n\n10001010 | 138 \n\n10010010 | 146 \n\n11111101 | 253 \n\n10001110 | 142 \n\n01111111 | 127 \n\n00001110 | 14 \n\n11101011 | 235 \n\n00010011 | 19 \n\n00101000 | 40 \n\n01011010 | 90 \n\n01001001 | 73 \n\n01011101 | 93 \n\n11000011 | 195 \n\n10000000 | 128 \n\n11011001 | 217 \n\n10000110 | 134 \n\n00000101 | 5 \n\n11110100 | 244 \n\n11000010 | 194 \n\n00110000 | 48 \n\n11010110 | 214 \n\n10100101 | 165 \n\n01000100 | 68 \n\n00011000 | 24 \n\n11111111 | 255 \n\n00111100 | 60 \n\n00010010 | 18 \n\n01101111 | 111 \n\n10101001 | 169 \n\n10001011 | 139 \n\n00011011 | 27 \n\n11010011 | 211 \n\n01001000 | 72 \n\n01011111 | 95 \n\n01010101 | 85 \n\n10111011 | 187 \n\n11100010 | 226 \n\n10011010 | 154 \n\n10011110 | 158 \n\n11000010 | 194 \n\n10001110 | 142 \n\n11100101 | 229 \n\n11000101 | 197 \n\n01001001 | 73 \n\n01100010 | 98 \n\n10010001 | 145 \n\n01110110 | 118 \n\n11000100 | 196 \n\n11101101 | 237 \n\n10000111 | 135 \n\n10010111 | 151 \n\n10111100 | 188 \n\n01001111 | 79 \n\n10001001 | 137 \n\n00111001 | 57 \n\n10001011 | 139 \n\n10110110 | 182 \n\n10001001 | 137 \n\n10100100 | 164 \n\n01110000 | 112 \n\n01110001 | 113 \n\n01111100 | 124 \n\n10001101 | 141 \n\n00010000 | 16 \n\n11001110 | 206 \n\n01011010 | 90 \n\n01110000 | 112 \n\n10000101 | 133 \n\n01110001 | 113 \n\n10100110 | 166 \n\n01010001 | 81 \n\n00100100 | 36 \n\n11011011 | 219 \n\n00011000 | 24 \n\n11010110 | 214 \n\n01000001 | 65 \n\n00111101 | 61 \n\n11010010 | 210 \n\n01001110 | 78 \n\n01100001 | 97 \n\n10100100 | 164 \n\n10110100 | 180 \n\n01000000 | 64 \n\n00100010 | 34 \n\n01101010 | 106 \n\n10000001 | 129 \n\n11111100 | 252 \n\n10010011 | 147 \n\n11001011 | 203 \n\n11001010 | 202 \n\n01011100 | 92 \n\n```\n\n## Other Projects That Could Be Built Using This Package\n- do the problems online/on computer\n- a website to serve these up and let people use them for free\n  - a web API that serves it, so people can do that programmatically\n  - a snail mail service?\n    - https://developers.lulu.com/price-calculator\n  - if there's going to be exercises in the browser,\n    - parseInt('0101', 2)\n  - maybe re-implement in Javascript so all computation and rendering is done on the client\n    - [PDF rendering in the browser](https://pspdfkit.com/blog/2018/render-pdfs-in-the-browser-with-pdf-js/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevaverbach%2Fbinary_quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzevaverbach%2Fbinary_quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevaverbach%2Fbinary_quiz/lists"}