Skip to content

millerdev/dimagi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup:

$ git clone https://github.com/millerdev/dimagi.git
$ mkvirtualenv dimagi

Numeric Converter

$ pip install nose
$ nosetests numconvert.py # run tests to verify functionality
$ python -c 'from numconvert import *; print(convert_to_spoken(7291642))'

Review source code if desired.

Math Engine

$ pip install bottle
$ python -m bottle matheng # start web server
  1. Open http://localhost:8080/?values=[1, 4, 7, -2] in a web browser.
  2. Next go to http://localhost:8080/entry and submit a list of numbers such as [2, 2].
  3. Use the Back button to go back and post a few more.
  4. Go to http://localhost:8080/history to see details about most recent calculation.
  5. Go to http://localhost:8080/history/3 to see three most recent calculations.

Finally, have a look at the code. It is minimal, but should meet all the requirements outlined on the exercises page.

About

Dimagi applicant exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages