github.com/gugod/App-perlbrew/pull/...
用 #yamlscript 把 #perlbrew 的一部分 CI workflow 檔案重新整理一下了。我覺得很好。
https://www.youtube.com/watch?v=Cdi3Q4Wrt48
Nice ltiile Talk about #YAMLScript from Ingy.
github.com/gugod/advent-of-code/blo...
AoC 2024 第 11 天份。
用了雙層 reduce,覺得有點怪怪的。但一時之間沒有想到更簡潔的做法。就這樣啦。
#AdventOfCode
#yamlscript
github.com/gugod/advent-of-code/blo...
AoC 2024 第 10 天份。
這題我在解第一部時是先寫了給第二部用的程式,然後發現不對,寫錯了,重寫一遍。然後在解第二部時發現:可惡,剛剛的版本沒留著。
#AdventOfCode
#yamlscript
github.com/gugod/advent-of-code/blo...
第九日第一部分。自己橋了一個資料結構想說應該比較省空間。結果搞邊界條件找好久。
#adventofcode
#yamlscript
github.com/gugod/advent-of-code/blo...
今年 AdventOfCode 我只解到第七天份,目前為止全用 YAMLScript 來解。
第七天的輸入內容的格式正好就是 YAML,那解析檔案的部分就直接用 ys::yaml 的 load-file 函式啦。
#yamlscript
#adventofcode
github.com/gugod/advent-of-code/blo...
I really like my resursive solution for AoC.2024.3
Also, destructive assignment from regex captures ? awesome.
#AdventOfCode
#yamlscript
github.com/gugod/advent-of-code/blo...
Needed a bunch of utilitiy function... but still managed to finish day 2 of 2024 AoC using #yamlscript in the first try.
#yamlscript
#AdventOfCode
github.com/gugod/advent-of-code/blo...
This year, yamlscript becomes much more viable for playing with #AdventOfCode !
#AdventOfCode
#yamlscript
I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/1 using #yamlscript
BTW, you run the tests with the `prove` command and you can write tests in any language by simply using the appropriate shebang line. `#!/usr/bin/env ys-0` for #yamlscript etc.
And you can use a different lang for each file if you wanted!
Let me know how things turn out, please!!
Ah, excellent!
Have a look at yamlscript.org/doc/ys-tapte...
All the runtime unit tests for `ys` use it.
github.com/yaml/yamlscr...
And all the tests for the #yamlscript #exercism exercises use it for the tests you need to pass
exercism.org/tracks/yamls...
I'm planning to use it in #helm charts.