This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-03
Channels
- # adventofcode (107)
- # announcements (1)
- # asami (14)
- # babashka (67)
- # beginners (89)
- # calva (34)
- # cider (17)
- # clj-kondo (5)
- # cljs-dev (2)
- # clojure (57)
- # clojure-europe (52)
- # clojure-india (1)
- # clojure-italy (1)
- # clojure-losangeles (2)
- # clojure-nl (6)
- # clojure-uk (39)
- # clojurescript (40)
- # community-development (3)
- # conjure (3)
- # cursive (17)
- # datomic (11)
- # docker (13)
- # events (3)
- # figwheel-main (3)
- # fulcro (12)
- # graalvm (7)
- # holy-lambda (7)
- # honeysql (9)
- # introduce-yourself (5)
- # malli (9)
- # minecraft (3)
- # missionary (21)
- # nextjournal (7)
- # off-topic (52)
- # pathom (3)
- # polylith (11)
- # portal (3)
- # re-frame (21)
- # reagent (34)
- # reclojure (7)
- # reitit (1)
- # reveal (11)
- # shadow-cljs (68)
- # tools-build (12)
- # tools-deps (5)
- # vim (4)
- # xtdb (9)
Pro tip: you can watch at double speed to catch up with the live stream!
@ordnungswidrig How do you play the non-live part then?
I've played the missed part in 2x and now caught up and watch the live part in real time
I can't find this option in the youtube UI. But then again, I'm a terrible user of most graphical UI programs.
I mean: how do you get at the missed part. Apparently I'm bad at asking questions too!
Just slide the circle 🔴 on the red bar to the left.
So, did it work? :thinking_face:
Good morning!
Pro tip: you can watch at double speed to catch up with the live stream!
@borkdude echo "010\n100"| bb -I -e '(print *input*)'
gives (8 100)
🤯
@ordnungswidrig This is not specific to bb:
$ clj
Clojure 1.10.1
user=> 010
8
I hate it.
It's rooted deeply in scanf
I guess.
> i Matches an optionally signed integer; the next pointer must be a pointer to int. The integer
> is read in base 16 if it begins with 0x' or
0X', in base 8 if it begins with `0', and in
> base 10 otherwise. Only characters that correspond to the base are used.
Who could ever think this is a good idea for edn?
What a lovely pattern in EdnReader
for integers ([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?
😱
For a very general regex, that’s not too bad, is it? It’s just “normal” regex suckage.
Could give the subbits names and concatenate them for clarity.
Think Arne has some Clojure datastructure -> regex library, always been curious to see if it’d be preferable to literal regexes like this
The https://github.com/edn-format/edn#integers reads: > Integers consist of the digits `0` - `9`, optionally prefixed by `-` to indicate a negative number, or (redundantly) by `+`. No integer other than 0 may begin with 0. 64-bit (signed integer) precision is expected. An integer can have the suffix `N` to indicate that arbitrary precision is desired. -0 is a valid integer not distinct from 0.
Ok but clojure literals are defined as this: > Integers can be indefinitely long and will be read as Longs when in range and clojure.lang.BigInts otherwise. Integers with an N suffix are always read as BigInts. Octal notation is allowed with a `0` prefix, and hexadecimal notation is allowed with a `0x` prefix. When possible, they can be specified in any base with radix from 2 to 36 (see https://docs.oracle.com/javase/7/docs/api/java/lang/Long.html#parseLong(java.lang.String,%20int)); for example `2r101010`, `052`, `8r52`, `0x2a`, `36r16`, and `42` are all the same Long.
(->> "good morning"
seq
shuffle
(apply str))
=> "mn norgigood"
What you might mumble when greeting someone from under the covers of your bed, not awake yet.I’m so happy. Finally got around to bash scripting some repetitive stuff that I always do when initialising my work project locally, and to js script something I often do to retrieve text from the browser when referencing stories.
Must script more!
Writing a Github action with the Node runner and nbb has become easier this week. You can now run Node 16 directly instead of via a hack. This is an example nbb action. https://github.com/borkdude/nbb-action-example/blob/main/action.cljs Now all I need is a good idea for a Github Action. It seems everything you can think of is already there.
I'll get boosted tomorrow :star-struck:
@borkdude so awesome!