{"id":25856803,"url":"https://github.com/cheapnightbot/calc","last_synced_at":"2026-06-02T20:31:48.602Z","repository":{"id":262917917,"uuid":"888770618","full_name":"CheapNightbot/calc","owner":"CheapNightbot","description":"Stumid  Cheap Calculator ~","archived":false,"fork":false,"pushed_at":"2024-11-16T08:22:44.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T17:29:46.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/CheapNightbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-15T01:18:00.000Z","updated_at":"2024-11-15T14:42:19.000Z","dependencies_parsed_at":"2024-11-15T02:27:18.380Z","dependency_job_id":"98a3ea0b-98a8-44d1-a78c-db03689b0356","html_url":"https://github.com/CheapNightbot/calc","commit_stats":null,"previous_names":["cheapnightbot/calc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CheapNightbot/calc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheapNightbot","download_url":"https://codeload.github.com/CheapNightbot/calc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheapNightbot%2Fcalc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33835766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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-03-01T18:28:08.506Z","updated_at":"2026-06-02T20:31:48.586Z","avatar_url":"https://github.com/CheapNightbot.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cheap Calculator ~\n\nA simple and stumid command-line calculator to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. ♡(\u003eᴗ•)\n\n\u003cdiv align=\"center\"\u003e\n    \n![Demo](https://github.com/user-attachments/assets/af7e817b-17a1-4c19-9dcb-cded4ba714cb)\n\n\u003c/div\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eTABLE OF CONTENTS\u003c/summary\u003e\n\n- [Features](#features)\n- [Installation](#installation)\n    - [Cleaning Up](#cleaning-up)\n- [Usage](#usage)\n    - [Commands](#commands)\n    - [Example](#example)\n- [Contributing](#contributing)\n- [License](#license)\n\n\u003c/details\u003e\n\n## Features\n\n- Supports the following basic operations:\n    - `+`: Addition\n    - `-`: Subtraction\n    - `*`: Multiplication\n    - `/`: Division\n    - `//`: Integer division (round to nearest integer)\n- Colorful output.\n- Python REPL inspired prompt and feel.\n\n## Installation\n\n\u003e [!NOTE]\n\u003e This project uses `gcc` \u0026 `make` for building. Ensure you have them installed on your system.\n\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/CheapNightbot/calc.git\n    ```\n\n2. Navigate into the project directory:\n\n    ```bash\n    cd calc\n    ```\n\n3. Build the project:\n\n    ```bash\n    make\n    ```\n\n    OR\n\n    ```bash\n    make calc\n    ```\n\n4. Run the calculator:\n\n    ```bash\n    ./build/calc\n    ```\n\n### Cleaning Up:\n\n\u003e [!WARNING]\n\u003e \"This will delete the 'build' directory and the executable!\"\n\nTo clean up the build files:\n\n```bash\nmake clean\n```\n\n## Usage\n\n### Commands:\n\n- `clear` or `clean`: Clears the terminal screen.\n- `exit` or `quit`: Exits the calculator.\n- `help`: Displays the help/usage message.\n\n### Example:\n\n```bash\n\u003e\u003e\u003e 3 + 4\n7\n\u003e\u003e\u003e 10 - 4\n6\n\u003e\u003e\u003e 5 * 5\n25\n\u003e\u003e\u003e 7 / 3\n2.33\n\u003e\u003e\u003e 7 // 3\n2\n```\n\n## Contributing\n\nIf you want to contribute, feel free to fork this repository, make your changes, and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheapnightbot%2Fcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheapnightbot%2Fcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheapnightbot%2Fcalc/lists"}