Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created July 12, 2013 17:35
Show Gist options
  • Save chintanparikh/5986245 to your computer and use it in GitHub Desktop.
Save chintanparikh/5986245 to your computer and use it in GitHub Desktop.
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
$ ->
prettyPrint()
setInterval (->
first = $('pre')[0]
url = $(first).data('update-path')
$.ajax
url: url
type: "GET"
success: (response) ->
content = response.content
if content != null
$.each(content, (id, value) ->
console.log(value)
)
), 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment