This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-30
Channels
- # adventofcode (1)
- # announcements (1)
- # babashka (5)
- # beginners (344)
- # bristol-clojurians (1)
- # calva (18)
- # cljfx (6)
- # clojure (85)
- # clojure-europe (37)
- # clojure-finland (1)
- # clojure-france (2)
- # clojure-nl (2)
- # clojure-taiwan (3)
- # clojure-uk (17)
- # clojurescript (13)
- # conjure (23)
- # cursive (25)
- # datomic (7)
- # fulcro (62)
- # java (7)
- # jobs-discuss (8)
- # malli (3)
- # off-topic (22)
- # portal (18)
- # reagent (34)
- # reitit (8)
- # releases (3)
- # shadow-cljs (18)
- # tools-deps (1)
what's a good way to add a command line option into the code (like defining constants, but let the constant be provided as an option to lein or something)
Shadow-cljs has this: https://shadow-cljs.github.io/docs/UsersGuide.html#config-merge I don't know if something like this exists in Leiningen but maybe you could use it for some keywords to help you with the search.
thanks!
Is there a more elegant interop syntax for this:
element.getBoundingClientRect().width
than this:
(.-width (.getBoundingClientRect elem))
?also:
(-> elem .getBoundingClientRect .-width)
anyone have chance to play with https://hotwire.dev yet?
What I'm doing wrong here? trying to access the function uniform2f on the js object gl
and make a partial function of it with location
and then apply the arguments in the list of values
(apply (partial (.-uniform2f gl) location) [1 2 3]) ;; => Uncaught TypeError: Illegal invocation....
after lot's of struggle, thank you so much @U2FRKM4TW!
(.apply gl.uniform2f gl (into-array (cons location values)))