This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-21
Channels
- # admin-announcements (42)
- # alda (1)
- # beginners (11)
- # boot (24)
- # boulder-clojurians (2)
- # cider (10)
- # cljs-dev (23)
- # clojure (63)
- # clojure-czech (4)
- # clojure-japan (2)
- # clojure-russia (44)
- # clojure-sg (2)
- # clojure-switzerland (2)
- # clojurescript (135)
- # community-development (5)
- # css (4)
- # cursive (19)
- # datomic (34)
- # emacs (2)
- # events (5)
- # funcool (13)
- # hoplon (3)
- # ldnclj (43)
- # ldnproclodo (1)
- # lein-figwheel (7)
- # luminus (7)
- # off-topic (54)
- # om (115)
- # onyx (82)
- # overtone (3)
- # re-frame (6)
- # reagent (15)
- # yada (5)
does anyone know how I can do % keyframes with Garden?
@tom:
FROM table
WHERE (:organization_id IS NULL OR :organization_id = organization_id)
AND (:id IS NULL OR :yard_id = yard_id)
AND (:id IS NULL OR :id = id);
The error was something like cannot determine type for $3I got around it this way
FROM table
WHERE (:has_organization_id IS FALSE OR :organization_id = organization_id)
AND (:has_yard_id IS FALSE OR :yard_id = yard_id)
AND (:has_id IS FALSE OR :id = id);
I have a project with HTTP API written in Clojure and client written in CLJS. I want to separate them so that running/developing/creating uberjar for API doesn't touch CLJS, but then I want to run dev version of CLJS with Clojure in a single process, and I want to use shared code from Clojure's project. I still want them to be in same repo, just in two different dirs. I wonder if there's a good way about doing that? Should/can I somehow just append Clojure's dir to CLJS' classpath? Or should I do something else?
@asolovyov: not sure what you are asking. cljs/clj can live side by side without issues, having the .cljs in the uberjar should not hurt although I'm pretty sure you could configure leiningen to exclude .cljs files when packing things together
two different dirs is fine ... i have been using src/clj
src/cljs
for as long as I can remember
@thheller: to be honest, I'm just concerned with clojurescript itself living in the uberjar
@asolovyov: ah yeah, you can just put cljs into the :dev profile
its way more responsive through RTM api, changes are kind of new, but I've been testing it in some of the other slack channels and it hasn't failed me yet.
Is the select-keys
function the best way to force the order of keys in a clojure hash with more than 8 key value pairs ?
I guess I thought select-keys forced the order. Maybe a better way to ask if whats the best way to force the order of keys in a hash map
hi folks, just wanted to mention that http://braveclojure.com has been updated with all the new and revised content from the print book (the macro chapters are way better, and the concurrency chapter has a fun new intro, among a million other improvements)
nonrecursive: thank you very much for that book! I had to teach myself Clojure in a very short time and it did the job awesomely
gusbicalho: woohoo! I’m glad it was helpful hope you’re enjoying Clojuring
Gus ❤️ Clojure
@nonrecursive: FYI there is a typo for Chapter 11 -> "Chapter 11: Master Concurren Processes with core.async" - missing the t
in Concurrent
whoops! thanks!
@nonrecursive: Np - Great book btw, thanks
How do I construct a schema for a map that should have one of two keys but not both? (xor)
For 4.x i'm doing it this way in project.clj: `:injections [(do (require 'taoensso.timbre) (require 'taoensso.timbre.appenders.core) (taoensso.timbre/merge-config! {:appenders {:spit (taoensso.timbre.appenders.core/spit-appender {:fname "your.filename"}) :println {:enabled? false}}}))]'`
@pupeno using Prismatic schema?
@pupeno: (s/conditional :a {:a s/Str} (constantly true) {:b s/Int})
Hello guys. I am studying clojure. I created my first code snippet. Can you review code and add comment on gist. Thanks...
Just after a quick glance, you have a function calling another function that’s defined after the calling function. They have to be defined in order (line 23).
Line 21: Not sure why you have a cond
that’s just an :else
. I’d ditch that. Also, you shouldn’t need a threading macro when you’re starting with an empty state. Let the first function call establish initial state. And then I’d use comp
.
Also, there’s a lot of cond
s in there. That’s usually a sign of imperative-style programming. It’d probably be more idiomatic to use defmulti
.
Does anyone know how to customize the printing of a custom record in the REPL? I overrode print-method and this seems to work -- but when pretty-printing is enabled in the REPL it doesn't display properly. The pretty printing functions are mostly undocumented so I'm pretty confused on how to go about changing how the record prints. anyone know?