{"id":29832358,"url":"https://github.com/hauntedhost/rpn-calculator","last_synced_at":"2025-10-27T23:40:12.648Z","repository":{"id":165387141,"uuid":"11893572","full_name":"hauntedhost/rpn-calculator","owner":"hauntedhost","description":"\"Reverse Polish Notation\" calculator","archived":false,"fork":false,"pushed_at":"2015-10-21T16:39:39.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T11:59:24.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/hauntedhost.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":"2013-08-05T08:26:54.000Z","updated_at":"2015-10-22T23:19:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"163b3c2a-dbab-4bf5-8e4b-014d061af69d","html_url":"https://github.com/hauntedhost/rpn-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hauntedhost/rpn-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Frpn-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Frpn-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Frpn-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Frpn-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hauntedhost","download_url":"https://codeload.github.com/hauntedhost/rpn-calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Frpn-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281361405,"owners_count":26487881,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07-29T11:36:01.100Z","updated_at":"2025-10-27T23:40:12.636Z","avatar_url":"https://github.com/hauntedhost.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"RPN Calculator\n==============\n\n\"RPN\" stands for \"Reverse Polish Notation\". (See the wikipedia entry for more information on this colorful term.) Briefly, in an RPN world, instead of using normal \"infix\" notation, e.g.\n\n```\n2 + 2\n```\n\nyou use \"postfix\" notation, e.g.\n\n```\n2 2 +\n```\n\nWhile this may seem bizarre, there are some advantages to doing things this way. For one, you never need to use parentheses, since there is never any ambiguity as to what order to perform operations in. The rule is, you always go from the back, or the left side.\n\n```\n1 + 2 * 3 =\u003e\n(1 + 2) * 3 or\n1 + (2 * 3)\n\n1 2 + 3 * =\u003e (1 + 2) * 3\n1 2 3 * + =\u003e 1 + (2 * 3)\n```\n\nAnother advantage is that you can represent any mathematical formula using a simple and elegant data structure, called a stack).\n\nHints\n-----\nRuby doesn't have a built-in stack, but the standard Array has all the methods you need to emulate one (namely, push and pop, and optionally size).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedhost%2Frpn-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhauntedhost%2Frpn-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedhost%2Frpn-calculator/lists"}