Skip to content

Instantly share code, notes, and snippets.

View LouisaBarrett's full-sized avatar

Louisa Barrett LouisaBarrett

  • Turing School of Software and Design
  • Denverish, Colorado
View GitHub Profile
@LouisaBarrett
LouisaBarrett / 1708-css-challenges.md
Created August 21, 2017 10:00
1708 CSS Layout Challenges

Example!

Challenge 5

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...)

Challenge 5

@LouisaBarrett
LouisaBarrett / 1706-css-challenges.md
Last active July 19, 2017 21:25
1706 CSS Challenges

Example!

Challenge 5

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...)

Challenge 5

**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.
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