Skip to content

Instantly share code, notes, and snippets.

@skrat
Last active August 29, 2015 14:16
Show Gist options
  • Save skrat/3643b30efb5bb233e5ce to your computer and use it in GitHub Desktop.
Save skrat/3643b30efb5bb233e5ce to your computer and use it in GitHub Desktop.
;; CLJ
(defn browser-repl []
(let [repl-env (weasel/repl-env :ip "0.0.0.0" :port 9001)]
(piggieback/cljs-repl :repl-env repl-env)
(piggieback/cljs-eval {} repl-env '(in-ns 'sketcher.core) {})))
;; CLJS
(weasel/connect "ws://localhost:9001" :verbose true :print #{:repl :console})
;; project.clj
:foreign-libs [{:file "node_modules/pixi.js/bin/pixi.js"
:provides ["PIXI"]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment