Skip to content

Instantly share code, notes, and snippets.

@firebelly
Created November 1, 2011 17:27
Show Gist options
  • Save firebelly/1331261 to your computer and use it in GitHub Desktop.
Save firebelly/1331261 to your computer and use it in GitHub Desktop.
uniq usernames for fch
un = nd.collect{|n|] [n[:first_name].to_s[0],n[:last_name],n[:title],n[:org]].compact.join('.').parameterize.split('-')[0,3].join('.') unless n[:title].nil? and n[:last_name].nil? and n[:email].nil?};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment