{"id":22159112,"url":"https://github.com/jonathan-beard/cmdlinemath","last_synced_at":"2025-06-13T15:03:09.448Z","repository":{"id":145707032,"uuid":"44923052","full_name":"jonathan-beard/CmdLineMath","owner":"jonathan-beard","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-16T16:18:30.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T20:20:29.483Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathan-beard.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":"2015-10-25T18:22:22.000Z","updated_at":"2017-01-12T00:06:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac3f5ef0-3282-42ef-bdd3-46f48c201962","html_url":"https://github.com/jonathan-beard/CmdLineMath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-beard%2FCmdLineMath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-beard%2FCmdLineMath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-beard%2FCmdLineMath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathan-beard%2FCmdLineMath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathan-beard","download_url":"https://codeload.github.com/jonathan-beard/CmdLineMath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294775,"owners_count":20591909,"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":[],"created_at":"2024-12-02T03:43:51.342Z","updated_at":"2025-03-24T15:12:30.290Z","avatar_url":"https://github.com/jonathan-beard.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CmdLineMath\n\nSo this will currently work on OS X only.\nThe CmdLine args package is in CmdArgs and \nshould be built/installed so that this \nexec can link it. \n\n\nOnce CmdArgs is built, you can run \n```bash\nmake\n```\nand you'll get the exe. \nYou can set quite a few parameters from the\ncommand line. To write a log of all the \noutput use the -log xxx name. The extension\nwill be a .csv but you can change it if you\nlike within the source code.\n\nTo exit, hit ctrl-c\n\nHere's the current options:\n```bash\n*******************************************************************************\nOptions menu for: ./simplemath\n-add                          // Include addition problems, \n                                 default: true, mandatory: false \n-sub                          // Include subtraction problems, \n                                 default: false, mandatory: false \n-mult                         // Include multiplication \n                                 problems, default: false, mandatory: false \n-number                       // Set total number of problems, \n                                 default: 20, mandatory: false \n-frac_success                 // Set fraction .xx to get \n                                 correct before exiting, default: 0.750, \n                                 mandatory: false \n-min                          // Set minimum digit to use, \n                                 default: -9, mandatory: false \n-max                          // Set maximum digit to use, \n                                 default: 9, mandatory: false \n-log                          // Set a log file, .csv extension \n                                 added by default, default: , mandatory: \n                                 false \n-h                            // Print menu and exit, default: \n                                 true, mandatory: false \nEnd Options\n*******************************************************************************\n```\n\nDefault arg operation:\n```bash\nCmdLineMath\u003e\u003e./simplemath\nWhat does: -2 + -5 = -7\n-7 is correct, GOOD JOB!!\nWhat does: 1 + -6 = -5\n-5 is correct, GOOD JOB!!\nWhat does: -7 + 9 = ^C\nYour % correct is: 100\n```\n\nThat doesn't capture what got my son interested though, which was the sound. The OS X \u003ci\u003esay\u003c/i\u003e command speaks the equations and the result (good or bad). There's also a logging feature since my son has to turn in some math work each weak that the parents are required to come up with. \n\nDisclaimer: I wrote this in about 10 minutes so the code/organization is a bit messy. I'll clean up in time. Feel free to submit requests, or fixes in the interim. One thing that bugs me is the way \u003ci\u003esay\u003c/i\u003e says \"x - -x\" as \"x minus minus x\" instead of \"x minus negative x\" which can be fixed, just need to type a few more lines of code.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathan-beard%2Fcmdlinemath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathan-beard%2Fcmdlinemath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathan-beard%2Fcmdlinemath/lists"}