Skip to content

Instantly share code, notes, and snippets.

@antonkartashov
Last active November 17, 2016 10:33
Show Gist options
  • Save antonkartashov/a30d556a6c751c6574cfb8878a9eecba to your computer and use it in GitHub Desktop.
Save antonkartashov/a30d556a6c751c6574cfb8878a9eecba to your computer and use it in GitHub Desktop.
handle = (Utils.domLoadJSONSync "https://randomuser.me/api/?gender=female&results=27").results
String.prototype.upperCase = -> @charAt(0).toUpperCase() + @slice(1)
for item, i in handle
avatar = item.picture.medium
first = item.name.first.upperCase()
last = item.name.last.upperCase()
name = "#{first} #{last}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment