Created
September 20, 2009 20:27
-
-
Save shinzui/189913 to your computer and use it in GitHub Desktop.
Dopplr City Color
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
require "digest/md5" | |
def dopplr_city_color(city) | |
Digest::MD5.hexdigest(city).slice(0..5) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment