https://github.com/nju33/cama
➗ Text calculator app using MathJS
https://github.com/nju33/cama
application calculator electron math
Last synced: about 1 month ago
JSON representation
➗ Text calculator app using MathJS
- Host: GitHub
- URL: https://github.com/nju33/cama
- Owner: nju33
- License: mit
- Created: 2017-03-04T20:00:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T21:41:36.000Z (about 9 years ago)
- Last Synced: 2025-01-23T00:22:23.483Z (over 1 year ago)
- Topics: application, calculator, electron, math
- Language: JavaScript
- Homepage:
- Size: 2.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Cama
Text calculator app using [MathJS](https://github.com/josdejong/mathjs)

## How to use?
This is almost MathJS itself, so please see the [MathJS document page](http://mathjs.org/docs/index.html).
## Extension
This app has its own extension as below.
- `goldenRatio` `gr` = 1.618
- `silverRatio` `sr` = 2.414
You can also make `$HOME/.config/cama/import.json` and set the original constant.
Like this
```json
{
"foo": 100,
"func": ["num", "return num"]
}
```
Those specified by the array are passed to `Function`. In other words, it becomes a function declaration.
```js
new Function('num', 'return num');
// num => { return num };
```
You will be able to use it as follows.
```js
foo + 10 // 110
func(10) // 10
```
## Shortcuts
### Global
`CommandOrControl+Alt+/` => Display and focus.
### Window
`Control+p` => If there is, select the previous formula
`Control+n` => If there is, select one calculation formula
`Control+l` => Delete all input values
## Download
From the [release page](https://github.com/nju33/cama/releases/latest)
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:9080
npm run dev
# build electron app for production
npm run build
# run webpack in production
npm run pack
```
More information can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/docs/npm_scripts.html).
---
This project was generated from [electron-vue](https://github.com/SimulatedGREG/electron-vue) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about this project can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
## License
MIT