Skip to content

Instantly share code, notes, and snippets.

View ghostandthemachine's full-sized avatar

Jon Rose ghostandthemachine

  • Origin Rose
  • Boulder, Colorado
View GitHub Profile
@ghostandthemachine
ghostandthemachine / .tmux.conf
Created March 16, 2016 22:57 — forked from snuggs/.tmux.conf
TMUX configuration file
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
#
# COPY AND PASTE
@ghostandthemachine
ghostandthemachine / polling.cljs
Created December 4, 2017 16:07
An example of polling using cljs and setInterval
;; Time between polling requests in milliseconds
(def TIMEOUT 1000)
(defn polling-request
[handler timeout]
;; Will call the handler every timeout interval
(js/setInterval handler timeout))
(defn- attach
"Takes a function to clone and a map of CSF related values
including:
- :args
- :arg-types
- :parameters
These are then properly named and assigned to the template prototype