TheIronYard--Orlando / 2015--SUMMER--ROR

Resources and homework for the Summer 2015 Ruby on Rails cohort @TheIronYard--Orlando.
9 stars 6 forks source link

22--Javascript-or-maybe-Yavascript--Heidi Roude #152

Open HRoude opened 9 years ago

HRoude commented 9 years ago

Assignment:

If you are comfortable with the how-to stuff like Treehouse and Code School, you'll be fine. The JavaScript Garden is really only for those who have some JS experience, or who want a lot of it.

Reading :

HRoude commented 9 years ago

Codewars:

def pitch_class note

notes = { "C" => 0, "D" => 2, "E" => 4, "F" => 5, "G" => 7, "A" => 9, "B" => 11 }

value = notes[note]

if note.length > 1 if note.include? "#" notes[note[0]] + 1 else note.include? "b" notes[note[0]] - 1 end
elsif !note.match(/^[A-G]b?#?$/) puts "nil" else note.length == 1 value end
end

HRoude commented 9 years ago

Journal-Week-6

https://github.com/HRoude/HRoude.github.io/blob/journal-week-6/journal-week-6.md