This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-08
Channels
- # announcements (9)
- # babashka (17)
- # beginners (26)
- # biff (2)
- # calva (5)
- # cider (11)
- # clara (6)
- # clojure (48)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (34)
- # clojure-uk (2)
- # clojurescript (22)
- # clr (11)
- # code-reviews (5)
- # conjure (3)
- # datomic (26)
- # emacs (14)
- # fulcro (10)
- # hyperfiddle (70)
- # lsp (34)
- # malli (5)
- # missionary (5)
- # off-topic (34)
- # releases (1)
- # shadow-cljs (19)
- # tree-sitter (1)
- # xtdb (25)
Is it possible to tell babashka to use a different directory for deps downloads? I'm trying to run it within a sandbox and it's erroring because it wants to fetch a specific version of clojure-tools
to ~/.deps.clj/
, but that directory isn't writable to it. I was hoping that --deps-root
would do that, but seemingly not
Out of interest, given that that seems to reference $HOME
by default, why didn't it work when I tried export HOME=/tmp/path
before running the process? How was it still looking up what my homedir 'should' be?
Would it be possible to get https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/HexFormat.html in babashka?
Seems reasonable. Before Java 17 there's already a bunch of ways to do it, of which you are probably aware
I'm short on ideas, actually. Looking to make a hex literal out of a string, e.g. 0xFFE8993C from "#E8993C"
now I doubt this class would help 💩
thanks for the quick response, nevermind I think
in case it helps, Integer/parseInt can do different radixes:
user=> (Integer/parseInt "E8993C" 16)
15243580
user=> 0xe8993c
15243580
my issue was much simpler — coding late enough into the night that I got hyperfocused on constraining my solution in a way which actually didn't matter :face_palm:
i'm using clojuredart and flutter is a diva about defining colors from hex strings (which is how the source data is) but works well with hex literals (`(m/Color 0xFFFF9800)`). I wanted to preserve visual recognizability so I got hung up on finding a way to get literals from the strings. meanwhile flutter works great with (A)RGB and I had a perfectly good 10-year-old util function hex-to-argb
which worked as soon as I tried it.
sorry for the wild goose chase