This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-30
Channels
- # arachne (1)
- # beginners (1)
- # boot (13)
- # cljs-dev (35)
- # cljsjs (12)
- # cljsrn (11)
- # clojure (77)
- # clojure-austin (14)
- # clojure-brasil (3)
- # clojure-france (1)
- # clojure-poland (4)
- # clojure-russia (23)
- # clojure-spec (39)
- # clojure-uk (14)
- # clojurescript (17)
- # cursive (16)
- # datascript (10)
- # devcards (1)
- # dirac (3)
- # editors (1)
- # emacs (4)
- # jobs (1)
- # jobs-rus (2)
- # luminus (5)
- # off-topic (1)
- # om (85)
- # parinfer (1)
- # perun (12)
- # re-frame (20)
- # reagent (4)
- # spacemacs (1)
- # specter (9)
- # yada (6)
a newbie cljs question: Why is there no float?
function? Is there some alternative I should/can use instead?
@pdmct JavaScript numbers are always 64bit floats. Sorry if this doesn't help... what are you trying to test for floatiness?
(number? 1) might be adequate?
I’m trying to write some cljs.spec
predicates — some of my data are floats — just thought it was odd that it doesn’t exist — yes I am using number?
but that is not as descriptive as I would like
ah cool, yup well I think number?
is as good as it gets in CLJS, as there is no finer type... what are you trying to describe?
ok thanks, just some stuff like this
(s/def ::latitude (s/and number? #(<= -90.00 % 90.00)))
(s/def ::longitude (s/and number? #(<= -180.00 % 180.00)))
:thumbsup: I see, nice. Yup seeing there is no other type than float for storage, you can't really be any more strict than that.
Hi all, newbie question here. What is typically required to add a css framework into a clojurescript project? There are appears to be a lot of “*jar” repositories and it’s confusing me a bit. In particular, I’m trying to add the semantic-ui css framework to a project. Looking through some of the options, it looks like I can either: - Use webjars (but throws an dependency error regarding jquery) - Use clojars (isn’t at the latest version) - Use npm to pull the package and manage it with gulp (not sure how to integrate with clojurescript) Can anybody offer a few pointers?
@odie, you can just add it as a static file and add it to a vendor
or assets
directory
I'd just commit the .css to the repository and have it served as part of the static files of your project
unless you have a ton of dependencies like this, I feel this frees up a lot of headspace
although I hadn't heard of webjars before, that seems kinda neat
I'm trying to do something seemingly trivial, which is on a textarea field (Reagent) on-input event, get the current scrollHeight... but for some reason this-as
is returning this
as the window
object instead of the textarea
object?