This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-19
Channels
- # announcements (1)
- # babashka (26)
- # beginners (42)
- # calva (3)
- # cider (5)
- # cljs-dev (7)
- # cljsjs (1)
- # cljsrn (13)
- # clojure (95)
- # clojure-europe (12)
- # clojure-germany (3)
- # clojure-italy (12)
- # clojure-nl (1)
- # clojure-spec (16)
- # clojure-uk (25)
- # clojurescript (13)
- # clojureverse-ops (5)
- # community-development (1)
- # conjure (8)
- # cryogen (3)
- # datomic (5)
- # deps-new (7)
- # exercism (1)
- # fulcro (34)
- # honeysql (9)
- # hyperfiddle (3)
- # instaparse (2)
- # introduce-yourself (2)
- # jobs (6)
- # kaocha (1)
- # lambdaisland (1)
- # lsp (47)
- # malli (3)
- # membrane (38)
- # off-topic (9)
- # polylith (36)
- # reitit (7)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (11)
- # spacemacs (7)
- # sql (7)
- # tools-deps (19)
Some time ago I was playing a bit with cryptography and I did a tiny implementation of Paillier cryptosystem which turned out also works not just in Clojure but also in Babashka. It's unlikely that I'll build a library for this, because I lose interest quickly, but it was a nice exercise. https://gist.github.com/littleli/9cf457a05fd925060d1e4a874834ad5e
Thanks for sharing! If you want, you could also share it to the "Show and tell" forum of the babashka discussions forum
Hi, i am trying to create a sequence in Scittle from:
(.getElementsByClassName js/document "shellcheck")
I would use https://cljs.github.io/api/cljs.core/array-seq but it seems to be missing from Scittle. Do you have some tips? Thx
@zikajk We could add this to SCI and then we could update scittle with this function
@zikajk Hmm, it seems just seq
also works?
cljs.user=> (seq #js [1 2 3])
(1 2 3)
in xterm-sci:
user=> (seq (.getElementsByClassName js/document "terminal"))
(#object[HTMLDivElement [object HTMLDivElement]])
https://babashka.org/xterm-sci/@borkdude Yes, it does.. And this also works. So I am fine ๐
(doseq [e (js->clj (.getElementsByClassName js/document "shellcheck"))]
(prn (.-innerHTML e)))
This does tooโฆ
(doseq [e (.getElementsByClassName js/document "shellcheck"))]
(.-innerHTML e))
I am confused by this as:
https://stackoverflow.com/questions/23616019/why-arent-nodelist-htmlcollection-seqablePerhaps it works with newer versions of CLJS (or shadow adds a protocol implementation for it?)
@zikajk It seems to work with newer vanilla CLJS:
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.866"}}}' -M -m cljs.main -p 8091 -r
ClojureScript 1.10.866
cljs.user=> (seq (.querySelectorAll js/document "div"))
(#object[HTMLDivElement [object HTMLDivElement]])
if anyone's using vault, amperity just merged a PR which makes the library vault-clj compatible with bb (master) :) https://github.com/amperity/vault-clj congrats @eugen.stan on getting the PR merged
If anyone's interested, I'll be doing a talk tomorrow evening at London Clojurians about Babashka tasks.

Will it be streamed?