This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn reexport [ns sym] | |
(cond (not (symbol? sym)) (throw (ex-info "reexport takes a symbol!" {})) | |
(not (namespace sym)) (throw (ex-info "reexport takes a namespaced symbol" {})) | |
:else | |
(let [v (resolve sym)] | |
(intern ns (-> sym name symbol (with-meta (meta v))) @v)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-env! :dependencies '[ | |
[org.clojure/clojure "1.8.0" :scope "provided"] | |
[org.clojure/clojurescript "1.9.89" :scope "provided"] | |
[ajchemist/boot-figwheel "0.5.4-5"] ;; latest release | |
[org.clojure/tools.nrepl "0.2.12" :scope "test"] | |
[com.cemerick/piggieback "0.2.1" :scope "test"] | |
[figwheel-sidecar "0.5.4-5" :scope "test"] | |
[pandeiro/boot-http "0.7.2" :scope "test"]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
rerun - kill and rerun subprocess on recieving HUP signal. | |
$ rerun myproc | |
In another terminal restart using | |
$ kill rerun:myproc -HUP |