(λ. borkdude) on Nostr: java.nio probeContentType: $ bb -e '(java.nio.file.Files/probeContentType (fs/path ...
java.nio probeContentType:
$ bb -e '(java.nio.file.Files/probeContentType (fs/path "README.md"))'
"text/markdown"
$ bb -e '(java.nio.file.Files/probeContentType (fs/path "logo/logo.svg"))'
"image/svg+xml"
#clojure #babashka
Published at
2024-10-19 10:07:52Event JSON
{
"id": "5716eb9d549f61ba18daa9dbbddb75c3f147e440fda1a02a1b98c65f7993acf8",
"pubkey": "c4ef83416f079257f5390f7d55a65e684d1b498d196e0e71bb8b90e21a820e07",
"created_at": 1729332472,
"kind": 1,
"tags": [
[
"t",
"clojure"
],
[
"t",
"babashka"
],
[
"proxy",
"https://mastodon.social/users/borkdude/statuses/113333532895423893",
"activitypub"
]
],
"content": "java.nio probeContentType:\n\n$ bb -e '(java.nio.file.Files/probeContentType (fs/path \"README.md\"))'\n\"text/markdown\"\n\n$ bb -e '(java.nio.file.Files/probeContentType (fs/path \"logo/logo.svg\"))'\n\"image/svg+xml\"\n\n#clojure #babashka",
"sig": "abb6ef178d5f145607d3cf14fc08408f4dcb253edc3eecb128280f170babd736d685589fe7e40db5f9fa21312337ce07662cfce7c81bd4ec3011da86389413f6"
}