alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
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]:magiclabs/alchemy_cms.git
cd alchemy_cms
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!