Skip to content

Instantly share code, notes, and snippets.

@shinzui
Created September 20, 2009 20:27
Show Gist options
  • Select an option

  • Save shinzui/189913 to your computer and use it in GitHub Desktop.

Select an option

Save shinzui/189913 to your computer and use it in GitHub Desktop.
Dopplr City Color
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