Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created June 27, 2025 14:51
Show Gist options
  • Select an option

  • Save ingydotnet/23f597ea05f4b54c0c5bc1100a692ab8 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/23f597ea05f4b54c0c5bc1100a692ab8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ys-0
defn main():
file name =:
sh("ls Task").out:words:shuffle
.map(task-ok)
.remove(nil?)
.first()
url =: read("Task/$name/00-META.yaml"):yaml/load.from
say: |
File: $file
From: $url#Clojure
$(file:read)
defn task-ok(name):
dir =: "Lang/Clojure/$name"
when fs-d(dir):
file =: sh("ls $dir").out:lines:first
file =: "$dir/$file"
when 10 <= read(file):lines.# <= 20: +
[file name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment