This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-17
Channels
- # aws (10)
- # beginners (64)
- # boot (3)
- # cider (20)
- # cljs-dev (32)
- # cljsrn (6)
- # clojure (126)
- # clojure-dusseldorf (3)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-poland (3)
- # clojure-spec (46)
- # clojure-uk (100)
- # clojurescript (37)
- # cursive (11)
- # datomic (6)
- # defnpodcast (2)
- # emacs (1)
- # events (3)
- # figwheel (2)
- # fulcro (20)
- # immutant (2)
- # jobs (1)
- # jobs-discuss (9)
- # keechma (3)
- # lein-figwheel (1)
- # luminus (2)
- # lumo (3)
- # mount (2)
- # off-topic (19)
- # om (3)
- # om-next (2)
- # onyx (20)
- # other-languages (55)
- # parinfer (11)
- # pedestal (8)
- # portkey (3)
- # protorepl (3)
- # re-frame (22)
- # ring (9)
- # rum (1)
- # shadow-cljs (82)
- # spacemacs (28)
- # sql (15)
- # test-check (15)
- # testing (2)
- # tools-deps (102)
- # vim (26)
Are there any good ways to use map
to result of document.getElementsByClassName
or goog.dom.getElementsByClass
?
Try calling array-seq on the result
Worked! Thank you! @pesterhazy
Do you have any suggestions with how to start with clojurescript, while already having clojure experience. Books/materials?
The official “Quick Start” guide got revamped a while ago and I’d suggest that as a good general starting point https://clojurescript.org/guides/quick-start
I was thinking of doing a real-time collaboration editor. Like Google Doc but without the fancy stuff. Wanted to implement the Operational Transformation stuff. So clojure on the backend, clojurescript on the frontend
’ve heard about reagent but never used it. Anything I’d need to know before i dive in
I found Re-Frame a nice framework for building single page web apps and it has sweet docs. https://github.com/Day8/re-frame
https://github.com/Day8/re-frame-template for jump start. There’s also #re-frame channel
Anyone using https://material-ui-next.com and found a nice way to use withStyles
from reagent?
question: is interop with shell.js
the best way to do filesystem stuff in cljs/node
atm? or are you guys using some nice wrapper? I am basically generating and deploying some webpack projects
. I am not using lumo
, just a :node-script
build in shadow-cljs
@fj.abanses depends on the environment, I recently read planck had some nice io abstractions.
@fj.abanses, I think shell.js or a similar convenience library is a good choice
ended up using shelljs.. nice little cheatsheet here https://devhints.io/shelljs
I can't seem to get externs generation to work for this file: https://raw.githubusercontent.com/sampotts/plyr/master/dist/plyr.js
in either here: http://jmmk.github.io/javascript-externs-generator/ or here: http://www.dotnetwise.com/Code/Externs/index.html
Is the fact that it is wrapped in a closure making it impossible for the generator to read the objects?
Hm, should work. IIFE exports the object to global.Plyr
. Problem is that browser can't evaluate JS files from githubusercontent, check browser console for error.
I was worried about that too. Because off the CDN it works. But the non min version on the CDN is apparently minified
@juhoteperi I really didn’t think that pattern worked in externs
This was about extern generator, not using the file as extern
@john Try PlyrInstance = new Plyr("#foo");
on console (select "sandbox" frame) and then get externs for PlyrInstance
. Generator is not able to get properties/methods from the class, but seems to work on the instance.
Wow, learned something new today! Thanks @juhoteperi
I wonder if this was documented anywhere... 😄 I wrote it down now: https://github.com/cljsjs/packages/wiki/Creating-Externs#tricks