Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2011 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1163853 to your computer and use it in GitHub Desktop.
Save anonymous/1163853 to your computer and use it in GitHub Desktop.
(defn ^:export main []
(dotimes [x 5]
(let [box(.getElement goog.dom (str "box" (inc x)))]
(goog.Timer/callOnce #(.setTextContent goog.dom box (str "hello box " x)) (* delay 1000)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment