{"id":19078991,"url":"https://github.com/tomtom/tcalc_vim","last_synced_at":"2026-06-20T15:32:30.897Z","repository":{"id":861659,"uuid":"597491","full_name":"tomtom/tcalc_vim","owner":"tomtom","description":"A small ruby-based RPN-calculator with optional VIM integration","archived":false,"fork":false,"pushed_at":"2013-10-20T14:39:09.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-22T05:27:52.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=2040","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/tomtom.png","metadata":{"files":{"readme":"README","changelog":"CHANGES.TXT","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-06T17:41:20.000Z","updated_at":"2013-10-20T14:39:15.000Z","dependencies_parsed_at":"2022-08-16T11:15:09.745Z","dependency_job_id":null,"html_url":"https://github.com/tomtom/tcalc_vim","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tomtom/tcalc_vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftcalc_vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftcalc_vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftcalc_vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftcalc_vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomtom","download_url":"https://codeload.github.com/tomtom/tcalc_vim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftcalc_vim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34576042,"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-20T02:00:06.407Z","response_time":98,"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":"2024-11-09T02:12:59.147Z","updated_at":"2026-06-20T15:32:30.891Z","avatar_url":"https://github.com/tomtom.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"It turns out that ruby is pretty good at maths and deals well with \ncomplex or rational numbers etc. Anyway, in certain occasions a postfix \nsyntax and a stack are better suited for calculations than ruby's infix \nsyntax. So, here comes ...\n\n:TCalc[!]\n    A small ruby-based[*] RPN-calculator, a simple ASCII function \n    plotter, and stack-based playground :-).\n\nThe tcalc.rb script can also be used as a stand-alone calculator (with \noptional support for curses and readline). Run \"tcalc --help\" for \ninformation on the command-line options.\n\nInput:\n    - Numbers (anything that starts with \"-\" or a decimal)\n    - Strings (anything that matches /^\"(.*?)\"$/)\n        - Be aware that the strings and numbers get evaluated by ruby. \n          You can thus execute ruby code by input like: -1;p'foo'\n    - Methods \u0026 constants of the following classes are available:\n        Float    :: http://www.ruby-doc.org/core/classes/Float.html\n        Complex  :: http://www.ruby-doc.org/core/classes/Complex.html\n        Rational :: http://www.ruby-doc.org/core/classes/Rational.html\n        Integer  :: http://www.ruby-doc.org/core/classes/Integer.html\n        Matrix   :: http://www.ruby-doc.org/core/classes/Matrix.html\n        Vector   :: http://www.ruby-doc.org/core/classes/Vector.html\n        Math     :: http://www.ruby-doc.org/core/classes/Math.html\n    - #N (pull the item at position N to the top)\n    - Call words: WORD[COUNT][@ARRITY][,ARGUMENT]\n        - If COUNT is \"#\", the top element will be used.\n    - Enter, escape =\u003e exit\n\nTokens are separated by blanks (� la forth). The blanks between the \nwords thus are significant.\n\n\n[*] For use with VIM, built-in ruby support (:echo has('ruby')) is \nrequired.\n\n\n-----------------------------------------------------------------------\n\nStatus:  Works for me (there may be some minor quirks)\nInstall: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT\nSee http://github.com/tomtom for related plugins.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Ftcalc_vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomtom%2Ftcalc_vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Ftcalc_vim/lists"}