This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-02
Channels
- # announcements (2)
- # babashka (21)
- # beginners (80)
- # bristol-clojurians (1)
- # calva (1)
- # cider (4)
- # clara (2)
- # clj-kondo (5)
- # cljs-dev (41)
- # clojure (8)
- # clojure-dev (2)
- # clojure-europe (28)
- # clojure-italy (11)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-sweden (1)
- # clojure-uk (11)
- # clojuredesign-podcast (5)
- # clojurescript (5)
- # code-reviews (4)
- # cursive (25)
- # data-science (5)
- # datomic (25)
- # duct (15)
- # emacs (6)
- # fulcro (13)
- # graalvm (1)
- # graphql (5)
- # helix (2)
- # jobs (3)
- # jobs-discuss (4)
- # luminus (1)
- # malli (13)
- # meander (3)
- # off-topic (16)
- # pathom (2)
- # pedestal (1)
- # re-frame (5)
- # ring-swagger (3)
- # spacemacs (4)
- # sql (16)
- # tools-deps (1)
- # tree-sitter (8)
- # vrac (2)
- # xtdb (16)
- # yada (2)
I just got a new mac from work and I cannot run bb, it tells me it’s an unknown developer. Any work around?
Got this working by turning off gatekeeper, (sudo spctl --master-disable) then running bb, and turning gatekeeper back on (sudo spctl --master-enable).
I actually downloaded it manually I did not realize there was a brew for it. Testing brew now to see if I have the same issue. New to mac so I just did what I do on linux.
Yeah my manual download is what caused the problem. I think the readme is good, it does not happen using brew which is your recommended way to install it. I should have read the readme
Heh, I'm a dinosaur, what's HN? 🙂
Aah... I try to find it. 🙂
At Metosin they didn't believe that I don't play video games. 🙂 (Actually I started playing video games last spring.) I don't use Twitter. I guess I'm a bit of a dinosaur. 🙂
Heh, me too! 🙂 My kids are already adults and I have a lot of free time - nice to study Clojure, do these exercises and write blogs in my study room.
I see it! The news is at #10.
Thanks for telling me, you made my day. 🙂
Kind of off topic, but after 55 years of not playing video games, a few hours ago my mum became addicted to Beat Saber, a VR (virtual reality) game
Hi BB team! After reading this article https://dev.to/prasannagnanaraj/i-just-created-a-todo-cli-with-clojure-1133, when I saw the code, I couldn't help but think it was perfect for an Babashka usage. So here is the gist: https://gist.github.com/PrestanceDesign/d2f6ba223e418298618966937062dda0
#!/usr/bin/env bb
(require '[clojure.string :refer [split]])
(require '[ :refer [writer reader]])
(require '[clojure.pprint :refer [print-table]])
(def file-location (System/getenv "TODO_LOCATION"))
(defn now [] (new java.util.Date))
(defn add-content
"appends content to todo file"
[file-location text-content]
(with-open [file (writer file-location :append true)]
(.write file (str text-content "\t" (now) "\n"))))
(defn print-helper
"Converts line content to a row obj"
[line-content]
(let [[todo created_at] (split line-content #"\t")]
{:todo todo :created_at (or created_at "UNKNOWN")}))
(defn read-content
"reads content from todo file"
[file-location]
(with-open [file (reader file-location)]
(let [file-content (slurp file)]
(print-table
(map print-helper
(split file-content #"\n"))))))
(let [args *command-line-args*]
(when (nil? file-location)
(throw (AssertionError. "empty $TODO_LOCATION")))
(case (first args)
"a" (do
(add-content file-location (second args))
(read-content file-location))
"ls" (read-content file-location)
(println "Choose either a or ls")))