{"id":20976224,"url":"https://github.com/realtristan/cbase","last_synced_at":"2025-03-13T09:19:26.972Z","repository":{"id":196292248,"uuid":"695691080","full_name":"realTristan/cbase","owner":"realTristan","description":"Convert decimal to binary, hex, octal, etc. and vice versa! Implementation of the numeral representation concepts learned in our CIS*1910 class for the fun of it!","archived":false,"fork":false,"pushed_at":"2023-10-06T22:56:41.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T05:49:49.384Z","etag":null,"topics":["binary","c","conversion","decimal","hex"],"latest_commit_sha":null,"homepage":"https://realtristan.github.io/cbase/","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/realTristan.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}},"created_at":"2023-09-23T23:01:00.000Z","updated_at":"2023-09-27T01:39:53.000Z","dependencies_parsed_at":"2023-09-27T01:58:22.755Z","dependency_job_id":null,"html_url":"https://github.com/realTristan/cbase","commit_stats":null,"previous_names":["realtristan/cbase"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fcbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fcbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fcbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realTristan%2Fcbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realTristan","download_url":"https://codeload.github.com/realTristan/cbase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374470,"owners_count":20280685,"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","conversion","decimal","hex"],"created_at":"2024-11-19T04:51:36.478Z","updated_at":"2025-03-13T09:19:26.951Z","avatar_url":"https://github.com/realTristan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cbase ![Stars](https://img.shields.io/github/stars/realTristan/cbase?color=brightgreen) ![Watchers](https://img.shields.io/github/watchers/realTristan/cbase?label=Watchers)\n![banner](https://github.com/realTristan/cbase/assets/75189508/7394bbc9-6b29-4afa-bb9b-79f75be26145)\n\n\nConvert decimal to binary, hex, octal, etc. and vice versa! Numeral representation concepts learned in our CIS*1910 class.\n\n## Todo\n- [X] Convert from decimal to base b\n- [X] Convert from base b to decimal\n- [X] Convert from base b to base c\n- [X] Add bases\n- [X] Multiply bases\n\n## Example\n```bash\n[1] Decimal to base conversion\n[2] Base to decimal conversion\n[3] Base to base conversion\n[4] Base addition\n[5] Base multiplication\n[6] Decimal to base 16 conversion\n\n\u003e\u003e 1\n\nEnter a number: 12931\nEnter a base: 16\nDecimal to base result: 3283\n```\n\n### How to run locally\nRun the following in the terminal of the root dir. (with the Makefile)  or in the docker container.\n```\n$ make\n```\n\n### How to test locally\nRun the following in the terminal of the root dir. (with the Makefile) or in the docker container. All tests must be passed before code is merged into master!\n```\n$ make testing\n```\n\n### How to run with docker\nRun the following in the terminal of the root dir. (with the Dockerfile)\n```\n$ docker build -t cbase .\n$ docker run -it --rm --name cbase cbase\n$ make\n```\n\n# License\nMIT License\n\nCopyright (c) 2023 Simpson Computer Technologies Research\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtristan%2Fcbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealtristan%2Fcbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtristan%2Fcbase/lists"}