This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-09
Channels
- # beginners (121)
- # boot (28)
- # cider (106)
- # clara (57)
- # cljs-dev (70)
- # cljsrn (6)
- # clojure (145)
- # clojure-dev (7)
- # clojure-italy (36)
- # clojure-russia (42)
- # clojure-spec (26)
- # clojure-uk (127)
- # clojurescript (103)
- # core-async (10)
- # cursive (56)
- # datascript (66)
- # datomic (16)
- # defnpodcast (1)
- # emacs (18)
- # events (6)
- # figwheel (1)
- # jobs (1)
- # luminus (1)
- # lumo (44)
- # off-topic (58)
- # om (17)
- # onyx (2)
- # parinfer (75)
- # pedestal (4)
- # re-frame (18)
- # ring (4)
- # ring-swagger (8)
- # rum (7)
- # spacemacs (7)
- # specter (2)
- # sql (4)
- # unrepl (39)
- # untangled (17)
- # vim (3)
- # yada (21)
(require '[cljs.nodejs :as node])
(def github (node/require "github"))
(def api (github.))
(def repos (.-repos api))
(.getForUser repos (js-obj "username" "mattford63"))
you can change node/require
to js/require
. Isn't a callback parameter missing for this promise (last argument of .getForUser)?
(.getForUser repos (js-obj "username" "mattford63") (fn [res] (println res)))
does this work?
hi guys, I’m new in Lumo. A very basic question, how can invoke Lumo on Mac osx? #!/user/bin/env lumo
not works
I have a very quick question
#!/usr/local/bin/lumo
(require `[lumo.core :refer [*command-line-args*]])
(println "-->" (first *command-line-args*))
Yes, sorry.. I copied a wrong version .. I get a same message in first with a normal quote.
#!/usr/local/bin/lumo
(require '[lumo.core :refer [*command-line-args*]])
(println "-->" (first *command-line-args*))
-> original version$ lumo
Lumo 1.5.0
ClojureScript 1.9.542
Node.js v7.10.0
Docs: (doc function-name-here)
(find-doc “part-of-name-here”)
Source: (source function-name-here)
Exit: Control+D or :cljs/quit or exit
cljs.user=> (require ‘[lumo.core :refer [*command-line-args*]])
nil
cljs.user=> (println “-->” (first *command-line-args*))
--> nil
nil
cljs.user=>
here is the tutorial link, that is better: https://github.com/lambdaisland/birch