Skip to content

Instantly share code, notes, and snippets.

@malcolmsparks
Created February 5, 2014 14:46
Show Gist options
  • Save malcolmsparks/8825170 to your computer and use it in GitHub Desktop.
Save malcolmsparks/8825170 to your computer and use it in GitHub Desktop.
#=(eval
(-> (clojure.core/read-string (slurp "/home/malcolm/src/azondi/config.clj"))
((partial clojure.walk/postwalk
(fn [x] (if-let [path (and (string? x) (second (re-matches #"\.\./azondi(.*)" x)))]
(str "/home/malcolm/src/azondi" path)
x))))
;; Comment these 3
#_(update-in [:jig/components] dissoc
:opensensors/mosquitto-bridge
:opensensors/opensensors-bridge
:opensensors/local-bridge
)
#_(assoc-in [:jig/components :opensensors/sse-bridge :jig/dependencies]
[:opensensors/dummy-event-generator :opensensors/erratic-pulse])
#_(assoc-in [:jig/components :opensensors/sse-bridge :inputs]
[[:opensensors/dummy-event-generator :channel]
[:opensensors/erratic-pulse :channel]])
;; Firefox reloader
#_(assoc-in [:jig/components :firefox-reloader]
{:jig/component 'jig.web.firefox-reload/Component
:jig/dependencies [:opensensors/service :cljs-server]
:jig.web.firefox-reload/host "localhost"
:jig.web.firefox-reload/port 32000
})
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment