Skip to content

Instantly share code, notes, and snippets.



Created Feb 19, 2016
What would you like to do?
Random Cat Picture
getCats = ->
$.get '', (data) ->
xmlimages = $(data).find 'image'
randomimage = xmlimages[Math.floor(Math.random() * xmlimages.length)]
imageurl = $(randomimage).find("url").text()

This comment has been minimized.

Copy link
Owner Author

@xjackk xjackk commented Feb 19, 2016

cats everywhere ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment