{"id":13753778,"url":"https://github.com/antingle/functions","last_synced_at":"2025-05-09T21:35:48.451Z","repository":{"id":40537468,"uuid":"481820502","full_name":"antingle/functions","owner":"antingle","description":"An intuitive macOS calculator for your menu bar","archived":false,"fork":false,"pushed_at":"2022-10-22T23:57:58.000Z","size":7169,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T06:30:46.385Z","etag":null,"topics":["calculations","calculator","functions","launchatlogin","macos","menubar","productivity","swift","swiftui","workflow"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/antingle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-15T03:07:08.000Z","updated_at":"2024-07-03T21:31:18.000Z","dependencies_parsed_at":"2023-01-19T22:16:01.202Z","dependency_job_id":null,"html_url":"https://github.com/antingle/functions","commit_stats":null,"previous_names":["antingle/functions","ingleanthony/functions"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antingle%2Ffunctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antingle%2Ffunctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antingle%2Ffunctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antingle%2Ffunctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antingle","download_url":"https://codeload.github.com/antingle/functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253329009,"owners_count":21891562,"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":["calculations","calculator","functions","launchatlogin","macos","menubar","productivity","swift","swiftui","workflow"],"created_at":"2024-08-03T09:01:29.343Z","updated_at":"2025-05-09T21:35:48.096Z","avatar_url":"https://github.com/antingle.png","language":"Swift","funding_links":[],"categories":["Utilities"],"sub_categories":["Math"],"readme":"# Functions\n\nA calculator that lives in your macOS menu bar and keeps a history of your calculations\n\n\u003cdiv align=\"left\"\u003e\n  \t\u003cimg width=\"300\" src=\"media/menubar_dark.png#gh-dark-mode-only\" alt=\"Calculator in the menu bar\"\u003e\n  \t\u003cimg width=\"300\" src=\"media/window_dark.png#gh-dark-mode-only\" alt=\"Calculator window\"\u003e\n \t\u003cimg width=\"300\" src=\"media/menubar_light.png#gh-light-mode-only\" alt=\"Calculator in the menu bar\"\u003e\n\t\u003cimg width=\"300\" src=\"media/window_light.png#gh-light-mode-only\" alt=\"Calculator window\"\u003e\n\t\u003cbr\u003e\n\u003c/div\u003e\n\n## Opening\n\n- The app is currently not signed, so simply double clicking the app will not open it\n- You must right click the app and choose 'Open'\n- You will then receieve a warning popup that the app cannot be checked for malicious software\n- You can then choose the button to 'Open' it\n\n## Usage\n\n- Calculator can be accessed by pressing the `f(x)` symbol in your menu bar\n- ~~The calculator can also be toggled with the global shortcut `option + command + c`~~ \n- - This is not working yet, since there is no way to currently open a MenuBarExtra programmtically.\n- Calculations can be typed and submitted to history by pressing `Enter`\n- History is saved even when the app is quit. It can also be cleared.\n- Pprevious solutions or expressions can be added to the textfield by clicking on them\n- Previous solutions can also be added by cycling through them with arrow keys or the arrow buttons\n- Previous solutions can be copied to the clipboard by pressing the copy symbol to the right each submitted solution\n- Typing infix operators (excluding `e` and `-`) will insert the previous answer before them for continuous calculations\n- A live preview of the calculation is shown while typing an expression\n\n### Notes\n\n- Non-valid calculations cannot be submitted to history\n- Syntax must be valid (only numbers with supported operators, functions and constants)\n- Closing parentheses are added upon submission of an expression if open pairs are missing their closed counterparts\n\n### Currently supported math symbols:\n\n**constants**\n\n```swift\npi or π, e\n```\n\n**infix operators**\n\n```swift\n+ - / * % ^ e\n```\n\n**prefix operators**\n\n```swift\n-\n```\n\n**functions**\n\n```swift\n// Unary functions\n\nsqrt(x)\nfloor(x)\nceil(x)\nround(x)\ncos(x)\nacos(x)\nsin(x)\nasin(x)\ntan(x)\natan(x)\nabs(x)\nln(x)\nlog(x) or log10(x)\nlog2(x)\n\n// Binary functions\n\npow(x,y)\natan2(x,y)\nmod(x,y)\n\n// Variadic functions\n\nmax(x,y,[...])\nmin(x,y,[...])\n```\n\n### Credits\n\n- The [Expression](https://github.com/nicklockwood/Expression#math-symbols) framework by Nick Lockwood\n- The [KeyboardShortcuts](https://github.com/sindresorhus/KeyboardShortcuts) package by sindresorhus\n- The [LaunchAtLogin](https://github.com/sindresorhus/LaunchAtLogin) package by sindresorhus\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantingle%2Ffunctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantingle%2Ffunctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantingle%2Ffunctions/lists"}