Fork me on GitHub
#clojurescript
<
2020-06-21
>
Spaceman08:06:03

The IBM Watson chatbot is great, but I need not spend $120/month to use just the very basic features. I can find sense-similarity using open source stuff well-enough and create my own rules. What I need is a free front-end plugin that works like the IBM Watson chatbot. What are some good ones for web, iOS and Android?

orestis08:06:13

#off-topic ?

Casey18:06:20

How can I dynamically set a property on an object?

Casey18:06:52

(let [property "something"] (set! (.-property js/global) value)) doesn't work of course, as it sets global.property not global.something

dvingo21:06:46

I put together a cljs wrapper for the css-in-js library emotion: https://github.com/dvingo/cljs-emotion I hope you may find it useful!

dvingo12:06:13

I haven't looked into that lib - actually just saw it yesterday! - but from a quick perusal I'd say my version has a smaller API- 3 vars and uses functions for any dynamic behavior. It looks like that lib adds more macros for various things, whereas in mine you'd just use a function. My lib does not support the css function of emotion and only supports styled . I made a walkthrough of the features using devcards here that explores the API: https://dvingo.github.io/cljs-emotion/#!/dv.cljs_emotion.devcards