{"id":27858494,"url":"https://github.com/smjsgaming/spwn-binary-calculator","last_synced_at":"2026-02-05T12:33:16.833Z","repository":{"id":143803778,"uuid":"324207675","full_name":"SMJSGaming/SPWN-Binary-Calculator","owner":"SMJSGaming","description":"As a part of the beta testing team I decided to make my first SPWN project a binary calculator library.","archived":false,"fork":false,"pushed_at":"2020-12-25T09:23:23.000Z","size":2,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-17T20:51:12.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/SMJSGaming.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,"zenodo":null}},"created_at":"2020-12-24T17:39:40.000Z","updated_at":"2022-05-05T05:32:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbb1b1c6-70d4-408b-ab70-39484ce6139e","html_url":"https://github.com/SMJSGaming/SPWN-Binary-Calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SMJSGaming/SPWN-Binary-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMJSGaming%2FSPWN-Binary-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMJSGaming%2FSPWN-Binary-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMJSGaming%2FSPWN-Binary-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMJSGaming%2FSPWN-Binary-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SMJSGaming","download_url":"https://codeload.github.com/SMJSGaming/SPWN-Binary-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMJSGaming%2FSPWN-Binary-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29121775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2025-05-04T14:13:44.689Z","updated_at":"2026-02-05T12:33:16.821Z","avatar_url":"https://github.com/SMJSGaming.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPWN Beta Test\n\nAs a part of the beta testing team I decided to make my first SPWN project a binary calculator library.\n\n## Usage\n\nsee [the runner](/runner.spwn).\n\n## Functions from @binaryCalculator\n\nA list of all functions and how to use them.\n\n### ::new\n\nThe class constructor.\n\n```swift\n@binaryCalculator::new(bits: @number, x: @number, y: @number);\n```\n\n- bits: The amount of bits in the binary number\n- x: The base X position of the bits\n- y: The Y position of the bits\n\n### binaryToDecimal\n\nA conversion method to turn the bits into a decimal number which is stored in the target.\n\n```swift\nbinaryCalculator.binaryToDecimal(target: @counter);\n```\n\n- target: The target counter storage\n\n### decimalToBinary\n\nA conversion method to convert the source into binary which is stored in the provided bits.\n\n```swift\nbinaryCalculator.decimalToBinary(source: @counter, calcSpeed: @number = 5);\n```\n\n- source: The counter source\n- calcSpeed: The speed at which it divides. Higher speed is more trigger heavy\n\n### prettyDecimalToBinary\n\nA slower but more interesting and clear version of [decimalToBinary](#decimalToBinary) showing how the number iterates through its division cycles. This uses less logic so it can handle larger numbers without exceeding the group limit.\n\n```swift\nbinaryCalculator.prettyDecimalToBinary(source: @counter, calcSpeed: @number = 10);\n```\n\n- source: The counter source\n- calcSpeed: The speed at which it divides. Higher speed is more trigger heavy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmjsgaming%2Fspwn-binary-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmjsgaming%2Fspwn-binary-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmjsgaming%2Fspwn-binary-calculator/lists"}