{"id":15721908,"url":"https://github.com/quinnjohnsoncode/pi-binary-expansion-finder","last_synced_at":"2026-05-01T14:34:08.906Z","repository":{"id":216910659,"uuid":"742682224","full_name":"QuinnJohnsonCode/pi-binary-expansion-finder","owner":"QuinnJohnsonCode","description":"Simple GUI Application that finds images in PI.","archived":false,"fork":false,"pushed_at":"2024-01-16T17:38:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T23:12:33.531Z","etag":null,"topics":["binary","c","gtk4","gui","pi"],"latest_commit_sha":null,"homepage":"","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/QuinnJohnsonCode.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-01-13T03:42:54.000Z","updated_at":"2024-01-13T04:23:31.000Z","dependencies_parsed_at":"2024-01-16T21:05:52.772Z","dependency_job_id":"9c9c4cf8-4785-416e-b8ac-9774b7cc09ef","html_url":"https://github.com/QuinnJohnsonCode/pi-binary-expansion-finder","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"a7b9fb8ae9709b9c0e51536222c11a68e5499da9"},"previous_names":["quinnjohnsoncode/pi-binary-expansion-finder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuinnJohnsonCode%2Fpi-binary-expansion-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuinnJohnsonCode%2Fpi-binary-expansion-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuinnJohnsonCode%2Fpi-binary-expansion-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuinnJohnsonCode%2Fpi-binary-expansion-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuinnJohnsonCode","download_url":"https://codeload.github.com/QuinnJohnsonCode/pi-binary-expansion-finder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390873,"owners_count":20769478,"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":["binary","c","gtk4","gui","pi"],"created_at":"2024-10-03T22:02:05.238Z","updated_at":"2026-05-01T14:34:08.590Z","avatar_url":"https://github.com/QuinnJohnsonCode.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PI Binary Expansion Finder\n\n## Description\nThis project was inspired by *Matt Parker ([Stand-up Maths](https://www.youtube.com/@standupmaths) on YouTube)*, in which he searches the binary expansion of PI to find certain images. \u003c/br\u003e\nThe project was written in plain **C**, using basic standard library support. \u003c/br\u003e\nIt uses **GTK4** to create a simple *grid-based layout* that allows users to draw a 4x4 image and displays its position in the binary approximation of PI. \u003c/br\u003e\nFor context, this project was tested with a PI text file that was in **Hexadecimal** and went up to **One Billion Digits**.\n\n## Prerequisites\n- C Compiler\n- GTK4\n- Hexadecimal PI file\n\n## Installation\n1. Clone the repository:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`git clone https://github.com/QuinnJohnsonCode/pi-binary-expansion-finder.git`\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`cd pi-binary-expansion-finder`\n\n2. Include the PI file:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Once a Hexadecimal PI file has been sourced, name it **pi-billion.txt** and put it in the root directory. \u003c/br\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;(Or change the name in *binary-find-pi.c*)\n\n3. Compile and run:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`gcc $(pkg-config --cflags gtk4) -o pi-gui.out pi-gui.c binary-find-pi.c $(pkg-config --libs gtk4)`\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`./pi-gui.out`\n\n## Usage\nTo use this GUI, follow these steps:\n\n1. Click the buttons in the center to toggle their state.\n2. Create an image by toggling the state of the buttons.\n3. When ready, click the button that states \"*Find 4x4 Image in PI*\".\n4. You can then view the Hex/Binary positions shown at the bottom.\n\n## Preview\n![This is a preview of the project, with a button on top that says Find 4x4 Image in PI, and then a grid of buttons](img/preview.png)\n\n## Contact\nPI Binary Expansion Finder was created by Quinn Johnson.\n\nReach out to me at my [Email](mailto:Quinn.Johnson99@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquinnjohnsoncode%2Fpi-binary-expansion-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquinnjohnsoncode%2Fpi-binary-expansion-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquinnjohnsoncode%2Fpi-binary-expansion-finder/lists"}