other-languages

mauricio.szabo 2022-02-03T17:27:15.996879Z

Folks, someone sent me this: https://roman01la.github.io/javascript-to-clojurescript/ And it does not support A LOT of JS syntax. Do you know if anyone wrote a better version for it? I'm quite inclined of writing one myself 😄

2022-02-03T20:11:39.486999Z

Does anyone know on windows how to list just file names in a directory, and pipe those names to a file, one file per line. I've tried via PS PS> Get-ChildItem -name > tosign.txt And

PS> Get-ChildItem -name | Out-File tosign.txt
My problem is tosign.txt always has itself in the list of files. I don't want it to include itself. I assume PS is creating the file before listing the files and that's what it includes itself.

2022-02-03T20:13:55.048369Z

Got it

Get-ChildItem -name -Exclude tosign.txt | Out-File tosign.txt

borkdude 2022-02-03T20:20:02.493409Z

@qmstuart you could try babashka next time :)

bb -e '(spit "tosign.txt" (str/join \newline (fs/list-dir ".")))' 

👍 3
😁 1
souenzzo 2022-02-04T01:24:59.200849Z

@borkdude this is the #other-languages channel. you can't suggest clojure here 😆

😅 1