This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-12
Channels
- # beginners (34)
- # boot (210)
- # cider (16)
- # cljs-dev (65)
- # cljsrn (3)
- # clojars (2)
- # clojure (107)
- # clojure-austin (8)
- # clojure-berlin (10)
- # clojure-brasil (1)
- # clojure-canada (1)
- # clojure-dev (1)
- # clojure-fr (1)
- # clojure-italy (22)
- # clojure-new-zealand (12)
- # clojure-nl (28)
- # clojure-russia (13)
- # clojure-spec (25)
- # clojure-uk (10)
- # clojurescript (109)
- # cursive (18)
- # datomic (44)
- # defnpodcast (1)
- # dirac (4)
- # emacs (2)
- # funcool (1)
- # hoplon (16)
- # jobs (14)
- # lambdaisland (23)
- # leiningen (2)
- # luminus (3)
- # off-topic (7)
- # om (58)
- # onyx (16)
- # proton (6)
- # re-frame (42)
- # reagent (55)
- # ring-swagger (5)
- # untangled (47)
- # vim (9)
(ns res.core
(:gen-class)
(:require [aero.core :refer [read-config]]
[ :as io]
[clojure.tools.cli :refer [parse-opts]]
[lib-onyx.peer :as peer]
[onyx.job]
[onyx.api]
[onyx.test-helper]
;; Load plugin classes on peer start
[onyx.plugin [core-async]]
;; Load our tasks
[res.tasks [math]]
;; Load our jobs
[ [heating-and-cooling]]))
what would be the proper way to have http://res.jobs reference two jobs?
➜ res git:(heating-and-cooling) ✗ tree src
src
└── res
├── core.clj
├── jobs
│ ├── basic.clj
│ └── heating_and_cooling.clj
└── tasks
└── math.clj
I tried :
:refer [basic heating-and-cooling]
but i got an error about res init. not sure what i should read about. Probably require and referHi guys, I'm saving some edn files to AWS S3, but when I try to download and open them my mac thinks they're Adobe DRM Activation Key files, how do I save it as a plain edn file?
@jeremykirkham On your Mac, right click the edn file and select Get info. Then look at the part “Open with”.
@singen thanks for that 🙂
are there any channels in this slack where discussing broader clojure career-related things would be appropriate?
@samueldev maybe #jobs-discuss ?
{ :cookie-name "good-cookie" :env-type #profile {:dev :dev :test :test :prod :prod} :yada {:port (int #or [#env PORT 3000])} ;; :yada {:port 4500} }
@piyush (Integer/parseInt port-str)
Thanks that does work but I may be misunderstanding how the evaluation is happening. Aero has a function read-config and it doesn’t seem to evaluate the parseInt
{ :cookie-name "good-cookie" :env-type #profile {:dev :dev :test :test :prod :prod} :yada {:port (Integer/parseInt #or [#env PORT 3000])} }
I get {:cookie-name "good-cookie", :env-type nil, :yada {:port (Integer/parseInt "4000")}}
@piyush: according to the Aero README you want #long
https://github.com/juxt/aero/blob/master/README.md#long-double-boolean
(caveat: I had never heard of Aero before -- so I don't know anything beyond what I just read there)
It looks like a nice library. I'd been looking at Outpace/config before. That also uses tagged literals for stuff.