Fork me on GitHub
#babashka
<
2019-11-01
>
borkdude07:11:55

only rotating the rim: great idea, but I don't know how to. PR welcome

borkdude08:11:55

probably need to break up the image in multiple layers?

borkdude10:11:20

animations are now done via animate.css: https://borkdude.github.io/sci.web/

borkdude10:11:30

feel free to experiment with other animations/settings ๐Ÿ™‚

lee11:11:29

I think your current animation is easier on the eyes. Interesting note: I was not seeing your new effect until I turned off โ€œreduce motionโ€ on my ipad. Which is good. Folks who donโ€™t like animations or get vertigo wonโ€™t have to see them.

borkdude11:11:57

that might be part of that CSS library then ๐Ÿ™‚

plexus12:11:13

seems doall isn't there yet?

borkdude12:11:47

hm, yeah, I noticed too. you might use vec instead

borkdude12:11:50

@plexus added to master:

$ lein bb '(doall (range 10))'
(0 1 2 3 4 5 6 7 8 9)

plexus12:11:29

nice, yeah I was using vec already ๐Ÿ™‚

plexus12:11:37

curl  | bb -o '(for [[[group art] counts] *in*] (str (reduce + (vals counts))  " " group "/" art))' | sort -rn | less

borkdude12:11:02

is that download stats?

borkdude12:11:33

cool ๐Ÿ™‚

borkdude12:11:56

^ @jeroenvandijk nice example of bb usage

jeroenvandijk12:11:17

yes, indeed! Thanks!

plexus12:11:20

pipe through nl to add line numbers (TIL about nl ๐Ÿ™‚ )

borkdude12:11:39

less -N also works (on my Mac at least)

plexus12:11:39

or cat -n apparently, but I don't think that's POSIX

plexus13:11:58

this never exits

curl  | bb -o '(for [[[group art] counts] *in* [ver cnt] counts] (str group "/" art "\t" ver "\t" cnt))'

borkdude13:11:10

interesting, I'll take a look

borkdude14:11:02

debugging: this step works: cat /tmp/stats.edn | bb -o '(for [[[group art] counts] *in*] counts)'

borkdude14:11:32

but this doesn't: cat /tmp/stats.edn | bb -o '(for [[[group art] counts] *in* [ver cnt] counts] counts)'

plexus14:11:39

interesting

plexus14:11:49

that for is a pretty hairy macro...

borkdude14:11:16

I'll debug some more

borkdude14:11:07

repro:

$ bb -o '(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)'
1
2
3
1
2
3

borkdude14:11:32

it seems to be a bug in sci:

sci $ lein run "(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)"

plexus14:11:32

thanks for looking into it!

borkdude14:11:37

thanks for using this stuff so these bugs actually surface

borkdude14:11:04

found the bug, fix coming

borkdude14:11:53

@plexus released v0.0.25: https://github.com/borkdude/babashka/releases/tag/v0.0.25

$ /usr/local/bin/bb '(for [[x counts] [[1 [1 2 3]] [3 [1 2 3]]] c counts] c)'
(1 2 3 1 2 3)

borkdude14:11:39

the bug originated from a workaround when sci did not yet have the when-first macro which was used in the original for macro, but I made a mistake there

borkdude14:11:52

but now it is supported so I just used the original code

plexus14:11:41

very cool! quick turnaround as usual ๐Ÿ™‚

plexus14:11:06

do you actually have a job as well?

borkdude14:11:25

yes, but I just had a meeting and needed a break, so thanks ๐Ÿ˜‰

plexus14:11:41

happy to help ๐Ÿ˜„