Fork me on GitHub
#etaoin
<
2022-05-20
>
lread19:05:52

Cool! I think I’ll add a section to docs with some execute examples. Another handy use of execute I recently discovered is supporting https://github.com/clj-commons/etaoin/issues/359#issuecomment-1121422096 (on Chrome anyway).

❤️ 1
lread19:05:41

@borkdude I feel no library is complete without a clj-kondo export config simple_smile (well the ones that would benefit from one anyway). When you have the time and interest, would you be so kind to add any thoughts/advice to https://github.com/clj-commons/etaoin/issues/413?

borkdude20:05:51

it's not clear to me which macros beyond those with B need extra help from hooks?

borkdude20:05:02

I will continue in the issue

borkdude21:05:41

That looks like a base64-encoded string to me

🙏 1
borkdude21:05:46

@steveholt04 You can probably decode that as follows:

(def bytes (-> (java.util.Base64/getDecoder) (.decode base64-string)))
And then write to disk using:
(io/copy bytes (io/file "/tmp/file.pdf"))

🙏 1
borkdude21:05:30

Note that you first have to decode the base64 and do not write it directly to a pdf file, that doesn't work

🙏 1