This file contains hidden or 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
var changeTitle = function() { | |
var artistName = $("#trackInfo .artistSummary").text(); | |
var trackTitle = $("#trackInfo .songTitle").text(); | |
$("title").text(trackTitle + " by " + artistName + " - Pandora"); | |
} | |
changeTitle(); | |
setInterval(changeTitle, 5000); |
This file contains hidden or 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
def to_hash | |
@reports.inject({}) do |report_hash, report| | |
report_hash.merge report.to_hash | |
end | |
end |
This file contains hidden or 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
def to_hash | |
hash = {} | |
@reports.each do |report| | |
hash.merge! report.to_hash | |
end | |
hash | |
end |
NewerOlder