dynamoid
https://github.com/veraticus/dynamoid
Ruby ORM for Amazon's DynamoDB
CohortsService#running_totals
Calculate a running sum of active users, so users active in later months count as active in this month, too. Start with the most recent month first, for calculating the running totals, and then reverse for displaying in the table. Each month has a total, and a percentage of the overall total, as keys.
Edit
git clone [email protected]:veraticus/dynamoid.git
cd dynamoid
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CohortsService-running_totals-for-pr
# Commit to gitgit add git commit -m "better docs for CohortsService#running_totals"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CohortsService-running_totals-for-pr
hub pull-request
# Celebrate!