-
-
Save ingydotnet/23f597ea05f4b54c0c5bc1100a692ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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