This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-18
Channels
- # adventofcode (9)
- # alda (2)
- # babashka (89)
- # beginners (86)
- # bristol-clojurians (1)
- # calva (54)
- # chestnut (2)
- # cider (18)
- # clj-kondo (19)
- # clojure (160)
- # clojure-brasil (2)
- # clojure-europe (6)
- # clojure-italy (8)
- # clojure-nl (46)
- # clojure-spec (52)
- # clojure-uk (45)
- # clojured (4)
- # clojuredesign-podcast (11)
- # clojurescript (15)
- # core-async (50)
- # datomic (41)
- # devops (3)
- # emacs (10)
- # fulcro (95)
- # graalvm (11)
- # graphql (3)
- # kaocha (1)
- # luminus (1)
- # malli (4)
- # off-topic (13)
- # overtone (3)
- # pathom (8)
- # re-frame (13)
- # reitit (10)
- # shadow-cljs (83)
- # spacemacs (2)
- # specter (9)
- # tools-deps (3)
- # vim (2)
I’m a bit surprised to see:
cljs.user=> #inst "0099-12-17T03:24:00.000-00:00"
#inst "1999-12-17T03:24:00.000-00:00"
On https://clojurescript.iothis is correct) according to JS meaning of Date)
internally string "0099"
been parsed as integer and transformed to 99
then it is passed to Date constructor
In Safari it’s different.
But I noticed that this constructor is not used by the reader. Rather it parses using a regex and constructs the date using js/Date.UTC
and that has the rule that “0-99 means 1900-1999”.
Another interesting thing is that dates before year 1000 renders as an instant that the reader doesn’t parse:
cljs.user=> (js/Date. (js/Date.UTC 999 1 0 0 0 0 0 0))
#inst "999-01-31T00:00:00.000-00:00"
cljs.user=> #inst "999-01-31T00:00:00.000-00:00"
Unrecognized date/time syntax: 999-01-31T00:00:00.000-00:00 - Unrecognized date/time syntax: 999-01-31T00:00:00.000-00:00
I guess changing https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/core.cljs#L10146 to (normalize (str (.getUTCFullYear obj)) 4) "-"
would fix it.
It's for React Native right? If so, you must forwarding the port 9500
~/Android/Sdk/platform-tools/adb reverse tcp:9500 tcp:9500
hallo, i'm wondering how i would do a dictionary lookup on my server side for clicked on text on the clientside. my main question there is how can i catch text via click, for words inside of paragraphs?
https://stackoverflow.com/questions/7563169/detect-which-word-has-been-clicked-on-within-a-text Seems to work. One downside is that it makes the word selected. But that should not be that hard to fix.
amazing, thank you! =)
it's actually kinda desirable that it highlights the word
amazing, thank you! =)