Giter VIP home page Giter VIP logo

simple-calculator's Introduction

A simple calculator created with react and electron License: MIT

This is a standalone Electron app created with ReactJS and written is JavaScript and TypeScript

Installation

  1. Download the latest release - for Windows systems download the zip called 'calculatorv' followed by version, and for Linux systems download the zip ending in 'Linux'
  2. Unzip the 'release' folder
  3. Run the file named 'Calculator Setup (version).exe' for windows, or 'calculator_1.0.0_amd64.deb' for Linux, then install when the software installer opens.
  4. On linux to run open your terminal and run 'calculator', or windows just search for 'calculator' and save the a shortcut to the file somewhere accessible such as your desktop

Module

Math Expression Evaluator

I used the math expression evaluator's eval function to parse the calculations from a string into an understandable JS calculation, and this module made it possible to add more complex mathematical functions, such as trigonometry or pi.

Shortcuts

  • 'Enter' or '=' to calculate answer
  • 'f' to completely clear the calculation bar, or the down arrow
  • Left or right arrow to navigate through the calculation bar
  • Up arrow to get the last calculated answer
  • 's' to square
  • 'i' or '^' to raise to the power
  • 'r' to square root
  • 'p' for ฯ€
  • 'q' for sin
  • 'w' for cos
  • 'e' for tan
  • '!' for factorial

Screenshots

To change the theme click the hamburger icon in the top left and go to 'options', then choose the theme

Default Theme

Dark Purple Theme

Gameboy Theme

simple-calculator's People

Contributors

jamessheppardd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.