Advertisement · 728 × 90
#
Hashtag
#yamlscript
Advertisement · 728 × 90

github.com/gugod/App-perlbrew/pull/...

#yamlscript#perlbrew 的一部分 CI workflow 檔案重新整理一下了。我覺得很好。

0 0 0 0
- YouTube
- YouTube Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

https://www.youtube.com/watch?v=Cdi3Q4Wrt48

Nice ltiile Talk about #YAMLScript from Ingy.

0 0 0 0
Preview
advent-of-code/2024/11/solve-2.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

github.com/gugod/advent-of-code/blo...

AoC 2024 第 11 天份。

用了雙層 reduce,覺得有點怪怪的。但一時之間沒有想到更簡潔的做法。就這樣啦。

#AdventOfCode
#yamlscript

0 0 0 0
Preview
advent-of-code/2024/10/solve-2.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

github.com/gugod/advent-of-code/blo...

AoC 2024 第 10 天份。

這題我在解第一部時是先寫了給第二部用的程式,然後發現不對,寫錯了,重寫一遍。然後在解第二部時發現:可惡,剛剛的版本沒留著。

#AdventOfCode
#yamlscript

0 0 0 0
Preview
advent-of-code/2024/9/solve-1.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

github.com/gugod/advent-of-code/blo...

第九日第一部分。自己橋了一個資料結構想說應該比較省空間。結果搞邊界條件找好久。

#adventofcode
#yamlscript

1 0 0 0
Preview
advent-of-code/2024/7/solve-2.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

github.com/gugod/advent-of-code/blo...

今年 AdventOfCode 我只解到第七天份,目前為止全用 YAMLScript 來解。

第七天的輸入內容的格式正好就是 YAML,那解析檔案的部分就直接用 ys::yaml 的 load-file 函式啦。

#yamlscript
#adventofcode

0 0 0 0

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

0 0 0 0
advent-of-code/2024/2/solve-2.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

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

2 0 0 0
Preview
advent-of-code/2024/1/solve-2.ys at fun · gugod/advent-of-code my solutions of puzzles in http://adventofcode.com/ - gugod/advent-of-code

github.com/gugod/advent-of-code/blo...

This year, yamlscript becomes much more viable for playing with #AdventOfCode !

#AdventOfCode
#yamlscript

2 0 0 0
Day 1 - Advent of Code 2024

I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/1 using #yamlscript

2 0 1 0

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!!

0 0 0 0
YAMLScript TAP Testing Library YAMLScript TAP Testing Library This library provides an implementation of the Test Anything Protocol (TAP) for YAMLScript. It's a really...

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.

1 0 1 0