This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-15
Channels
- # announcements (17)
- # babashka (16)
- # beginners (17)
- # biff (13)
- # cider (63)
- # cljsrn (8)
- # clojure (34)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-nl (2)
- # clojure-spec (17)
- # clojure-uk (2)
- # clojurescript (51)
- # code-reviews (1)
- # conjure (15)
- # cursive (16)
- # datomic (10)
- # emacs (4)
- # fulcro (13)
- # graalvm (4)
- # helix (3)
- # introduce-yourself (7)
- # kaocha (2)
- # lsp (4)
- # music (2)
- # off-topic (11)
- # re-frame (2)
- # reagent (3)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (21)
- # spacemacs (4)
- # sql (1)
- # vim (2)
I remember that there was a way in babashka to check on which OS bb task is run. I'm trying to find this snippet, but no success so far. Does anybody know where to look at?
@karol.wojcik same as in Java, via a Java property
$ bb -e '(let [{os-name "os.name" os-arch "os.arch"} (System/getProperties)] [os-name os-arch])'
["Mac OS X" "amd64"]
Ok got it! Thanks!
The MySQL babashka pod has gone live! You can now interact with MySQL from babashka scripts via the next.jdbc interface. Example: https://github.com/babashka/pod-registry/blob/master/examples/mysql.clj
Made a bb.edn
for a native-image based project which includes both Java and Clojure sources:
https://github.com/borkdude/trickle/blob/main/bb.edn
WIP, but it works https://github.com/Grazfather/dotfiles/blob/bb/bb.edn
Note that if you have a big chunk of code you could also use load-file
or paths
to move it to a .clj file (completely optional of course)
yeah, I plan to, but was actually thinking of moving more of the data to a separate edn. What’s the best way to load that?
and I would love in general if you pointed out anything else I did there that you think I could improve. I am still a clj newbie!
ok. spit
has an :append true
option you could use here: https://github.com/Grazfather/dotfiles/blob/ef3ffc6dfd0de85cd1f25c89456f8790c2abce10/bb.edn#L33
oh, I thought I looked for one. Thank you!
WIP, but it works https://github.com/Grazfather/dotfiles/blob/bb/bb.edn