I used these elements and specified these styles to make this thing happen. I chose to use white text color because you can't see it if it's black. (duh). (When you write this make your actual description more meaningful...)
I used these elements and specified these styles to make this thing happen. I chose to use white text color because you can't see it if it's black. (duh). (When you write this make your actual description more meaningful...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI) | |
**Step Two**: Fork this gist. | |
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?" | |
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
class Formatter | |
def self.format_pace(seconds) | |
hours = seconds/3600.to_i | |
minutes = (seconds/60 - hours * 60).to_i | |
seconds_remaining = (seconds - (minutes * 60 + hours * 3600)) | |
if hours >= 1 | |
"%01d:%02d:%02d" % [hours, minutes, seconds_remaining] | |
elsif minutes <= 9 |