Fork me on GitHub

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.

๐ŸŽ‰ 6

Thanks for sharing! If you want, you could also share it to the "Show and tell" forum of the babashka discussions forum


I'll join forum later today and put it there as well.


cool. it's just the github repo "discussions" thing

Jakub Zika11:07:15

Hi, i am trying to create a sequence in Scittle from: (.getElementsByClassName js/document "shellcheck") I would use 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

๐Ÿ‘ 4

@zikajk Hmm, it seems just seq also works?

cljs.user=> (seq #js [1 2 3])
(1 2 3)

๐Ÿ‘ 4

in xterm-sci:

user=> (seq (.getElementsByClassName js/document "terminal"))
(#object[HTMLDivElement [object HTMLDivElement]])

Jakub Zika11:07:15

@borkdude Yes, it does.. And this also works. So I am fine ๐Ÿ™‚

(doseq [e (js->clj (.getElementsByClassName js/document "shellcheck"))]
     (prn (.-innerHTML e)))

Jakub Zika11:07:14

This does tooโ€ฆ

(doseq [e (.getElementsByClassName js/document "shellcheck"))]
     (.-innerHTML e))
I am confused by this as:


are you confused why it works in scittle but not in the SO question?

Jakub Zika11:07:16

Yes ๐Ÿ™‚ TY


Perhaps it works with newer versions of CLJS (or shadow adds a protocol implementation for it?)


I don't know the answer

๐Ÿ‘ 4

@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]])

Jakub Zika11:07:34

I was going to do some tests later. So thank you, good to know ๐Ÿ™‚.


if anyone's using vault, amperity just merged a PR which makes the library vault-clj compatible with bb (master) :) congrats @eugen.stan on getting the PR merged

๐ŸŽ‰ 4

thank you @borkdude for your help and support in making that happen ๐Ÿ™‚


If anyone's interested, I'll be doing a talk tomorrow evening at London Clojurians about Babashka tasks.

awesome 10
๐Ÿš€ 14
๐ŸŽ‰ 8

Will it be streamed?


it will be streamed live and also published on youtube

๐ŸŽ‰ 2

it's an online talk