Git Product home page Git Product logo

alfred-percent-change's Introduction

Percent Change

This is an Alfred Workflow to help you do percentage calculations. You can see some background info on the original forum post.

March 2022 updated to Python 3

Downloads


The supported calculations include:

  1. Percent Change (increase/decrease): % 3 6 -> 100%
  2. Percentage Of: 3 is what percent of 100: % 3 of 100 -> 3%
  3. Percent Of: 5 percent of 100 is 5: % 5 percent of 100 -> 5, or % 5% of 100 -> 5
  4. Percent Decrease: What is 2 percent from 100: % 100 - 2%
  5. Percent Increase: What is 100 + 2%: % 100 + 2%
  6. Original number before Percent Decrease: What number is 100 2 percent less than?:% 100 is 2% lt
  7. Original number before Percent Increase: What number is 100 2 percent more than?:% 100 is 2% gt

Build:

License

This Workflow is available under the terms of the MIT License. See the full LICENSE for more details.

Contributing

Contributions to this project are welcome. To contribute, feel free to fork this repo, add your changes/features/improvements, then open a pull request. Don't for get to add your name to the AUTHORS file.

alfred-percent-change's People

Contributors

bradmontgomery avatar giovannicoppola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alfred-percent-change's Issues

Not working on macOS Monterey 12.3

Python is gone from this seed of Monterey, and even after reinstalling Python 2.7.18 and even Python 3, the % change workflow is not working at all. Any thoughts on an update? Thanks.

Logic is incorrect for % gt than

First of all thanks for making this Alfred workflow, speeds up these operations lot!

This logic is incorrect. "% 100 is 2% gt" should mean "What number is 100 2 percent greater than?"

The answer here should be 98.04, not 98 which it currently outputs.

98 * 1.02 = 99.96, not 100.
98.04 * 1.02 = 100.

Errors on macOS Big Sur?

Not sure why this issue started showing up but I am getting this error when I try to run this workflow:

Code 1: Traceback (most recent call last):
  File "/Users/spieglio/Documents/Alfred-Course-Preferences/Alfred.alfredpreferences/workflows/user.workflow.CF498365-FC95-454E-9B6A-8ED1AD20F5EB/percent.py", line 27, in <module>
    from workflow import Workflow, ICON_INFO
  File "/Users/spieglio/Documents/Alfred-Course-Preferences/Alfred.alfredpreferences/workflows/user.workflow.CF498365-FC95-454E-9B6A-8ED1AD20F5EB/workflow/__init__.py", line 16, in <module>
    from .workflow import Workflow, manager
  File "/Users/spieglio/Documents/Alfred-Course-Preferences/Alfred.alfredpreferences/workflows/user.workflow.CF498365-FC95-454E-9B6A-8ED1AD20F5EB/workflow/workflow.py", line 27, in <module>
    import cPickle
ModuleNotFoundError: No module named 'cPickle'

Maybe this could be fixed?

Possible flow improvement

Hi, first of all great workflow, loving it.

Is it possible to dismiss calculation on enter press and save calculated value in clipboard?

That flow is kinda standard, most of similar workflow using it

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.