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
<div id="map-content" class="content-block"> | |
<iframe src="https://www.google.com/maps/d/embed?mid=znUQrbKNpf80.kyoqBAc9b1fQ" width="640" height="480"></iframe> | |
</div> |
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
class Scrabble | |
SCORES = {"A"=>1, "B"=>3, "C"=>3, "D"=>2, "E"=>1, "F"=>4, "G"=>2, "H"=>4, "I"=>1, "J"=>8, | |
"K"=>5, "L"=>1, "M"=>3, "N"=>1, "O"=>1, "P"=>3, "Q"=>10, "R"=>1, "S"=>1, "T"=>1, | |
"U"=>1, "V"=>4, "W"=>4, "X"=>8, "Y"=>4, "Z"=>10} | |
def self.score(word) | |
SCORES[word.upcase] | |
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
THREE_DIGIT_NUMBERS = (100..999).to_a | |
MAX = 999 * 999 | |
MIN = 100 * 100 | |
def is_palindrome?(input) | |
input.to_s == input.to_s.reverse | |
end | |
def three_digit_factors(input) |
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 pop_off_wordlet(string) | |
wordlet = string[0] | |
string[0] == '' | |
until letter_value(wordlet[-1]) >= letter_value(string[0]) | |
wordlet += string[0] | |
string[0] == '' | |
end | |
[wordlet, string] | |
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
/events/2222222-foo-slug | |
/events/2222222 | |
/events/cities/23232-city-slug-/22222 | |
/events/cities/23232-city-slug-/22222-foo-slug | |
/events/cities/23232/22222-foo-slug |
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
array.any?{|string| comparison(string)} | |
def comparision(string) | |
string.match(/fwefwe/) | |
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 is_obnoxious? | |
name == "Tony Core" | |
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
<%= link_to "/tickets/#{@market.name.downcase}/ticket/#{category.slug}" do %> | |
HTML GARBAGE | |
<% 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
jQuery -> | |
playlistHandler() | |
playlistHandler = -> | |
totalTracks = $(".song").length | |
$(".song").click -> | |
playSong($(this).attr('data-track')) | |
$("#next").click -> |
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 visibleMarkers = function() { | |
var filtered = _.reject(Gmaps.map.markers, function(marker) { | |
return _.all(marker.revenues, function(revenue) { revenue < PriceRangeFilter.min || revenue > PriceRangeFilter.max; | |
}); | |
}); | |
filtered = _.reject(filtered, function(marker) { | |
return _.all(marker.days_since, function(days) {days < DateRangeFilter.recent || days > DateRangeFilter.oldest | |
}); | |
}); |
NewerOlder