Business Shell
bizsh
is an interactive ruby shell optimized business calculations.
Usage
Install the shell via rubygems:
$ gem install bizsh
Now fire up the shell!
$ bizsh
You're greated with an interactive Ruby shell that's optimized for business calculations.
bizsh> growth = '$ 100,000'.to_num.growth(150_000)
=> 0.5
bizsh> growth.to_s(:percent)
=> "50.00%"
bizsh> shares = 100
=> 100
bizsh> value = shares * "MSFT".quote.ask
=> 4759.0
Why?
The calculator apps that ship on Mac and Windows are great for really basic calculations, but are lacking when a few variables need to be set to complete a calculation. Spreadsheets are great for building models or very complex calculations, but too heavy for running simpler calculations. There are desktop and online apps that do calculations, but are clunky or have ads all over the place.
I wrote bizsh
after I found myself running a lot of common calculations in irb
for my business, Poll Everywhere. I plan on adding more functionality to this as I continue using this shell.
Contributing
Contributions for new functions, documentation, and tests are welcome!
- Fork it ( https://github.com/bradgessler/bizsh/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request