rails_admin
https://github.com/railsadminteam/rails_admin
Ruby
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
Gitlab::Sherlock::LineSample#percentage_of
Returns the sample duration percentage relative to the given duration.
Example:
sample.duration # => 150
sample.percentage_of(1500) # => 10.0
total_duration - The total duration to compare with.
Returns a floatEdit
git clone [email protected]:railsadminteam/rails_admin.git
cd rails_admin
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Sherlock--LineSample-percentage_of-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Sherlock::LineSample#percentage_of"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Sherlock--LineSample-percentage_of-for-pr
hub pull-request
# Celebrate!