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
| # https://github.com/gokcehan/lf/wiki/Tips | |
| set cursorpreviewfmt "" | |
| cmd yank-file $printf '%s' "$f" | pbcopy | |
| cmd opener-open &$OPENER $f | |
| cmd opener-open-wsl &{{ | |
| cmd.exe /c start "" "$(wslpath -w $f)" 2> /dev/null | |
| }} | |
| cmd mkdir %mkdir "$@" | |
| cmd touch %touch "$@" |
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 gosh | |
| (define (fizzbuzz n) | |
| (define (% x y) (eq? (mod x y) 0)) | |
| (define (get i) | |
| (cond ((% i 15) "FizzBuzz") | |
| ((% i 5) "Buzz") | |
| ((% i 3) "Fizz") | |
| (else (x->string i)))) | |
| (define (show str) | |
| (display str) |