{"id":15959100,"url":"https://github.com/nickstenning/gc","last_synced_at":"2026-02-03T22:06:25.634Z","repository":{"id":1295726,"uuid":"1237703","full_name":"nickstenning/gc","owner":"nickstenning","description":"A simple command line interface to the Google Calculator API","archived":false,"fork":false,"pushed_at":"2011-05-31T19:47:51.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T21:40:53.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/nickstenning.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}},"created_at":"2011-01-10T11:37:01.000Z","updated_at":"2014-04-01T03:49:58.000Z","dependencies_parsed_at":"2022-07-06T18:33:08.902Z","dependency_job_id":null,"html_url":"https://github.com/nickstenning/gc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nickstenning/gc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickstenning","download_url":"https://codeload.github.com/nickstenning/gc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fgc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29059092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-07T14:40:21.565Z","updated_at":"2026-02-03T22:06:25.616Z","avatar_url":"https://github.com/nickstenning.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gc\n\nThis is an extremely simple interface to the Google Calculator. Just pass it the query on the command line.\n\n    $ gc 2 + 2\n    4\n\n    $ gc -v 2 + 2\n    2 + 2 = 4\n\n    $ gc once in a blue moon\n    1.16699016 * 10^-8 hertz\n\n    $ gc \"(4 * pi * epsilon_0 * hbar * c) / elementary charge^2\"\n    137.035984\n\n    $ gc \"sqrt((c * 8 minutes)^3 / (G * m_sun)) * 2 pi in years\"\n    0.943428231 years\n\nAlternatively you can use `gc` interactively:\n\n    $ gc\n    \u003e\u003e 1m / (2 second / 2 pi)^2\n    9.8696044 m / s^2\n    \u003e\u003e 4 pi * r_earth^2 in inverse barns\n    1.95617402 * 10^-43 inverse barns\n\n**NB:** This is particularly nice when combined with [rlwrap](http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap.html), as `gc` has no readline support of its own.\n\n## Why use gc?\n\nThe big difference between this and other projects such as [uj-gcalc](http://code.google.com/p/uj-gcalc/) is that it doesn't try and parse the results from the Google HTML results page, it extracts them directly from the Calculator API at \u003chttp://www.google.com/ig/calculator\u003e, thus hopefully making it more resilient to the whims of Google's engineers.\n\nIf you come across any bugs, please [open an issue](https://github.com/nickstenning/gc/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickstenning%2Fgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fgc/lists"}