etaoin

borkdude 2022-05-20T19:47:03.975309Z

@steveholt04 I found this issue about it: https://github.com/clj-commons/etaoin/issues/355

🙏 1
lread 2022-05-20T19:50:52.462369Z

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
lread 2022-05-20T19:54:41.533189Z

@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?

borkdude 2022-05-20T20:28:50.652309Z

@lee I'm trying to improve the macroexpand hook, see: https://github.com/clj-kondo/clj-kondo/issues/1701#issuecomment-1133222340

borkdude 2022-05-20T20:29:51.810419Z

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

borkdude 2022-05-20T20:30:02.493639Z

I will continue in the issue

borkdude 2022-05-20T21:39:41.548159Z

That looks like a base64-encoded string to me

🙏 1
borkdude 2022-05-20T21:48:46.368769Z

@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
borkdude 2022-05-20T21:48:56.738499Z

io = http://clojure.java.io

borkdude 2022-05-20T21:51:30.282959Z

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

🙏 1