This file contains 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
{ | |
:scale "900*1200" ;; размер картинки | |
:project-title "Полное название фичи (короткое название)" | |
:project-header "План на 10-02-2022" ;; Дата обновления плана | |
:project-starts "2022-02-10" | |
:project-scale-zoom {:scale :daily :zoom 1} | |
:tasks-colors {:color/in-progress "GreenYellow/Red" |
This file contains 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
mkdir ~/btasks | |
ltedit ~/btasks/gbb ;; add gbb content to a file | |
chmod +x ~/btasks/gbb | |
ltedit ~/.zshrc | |
;;add content zshrc to the end of .zshrc | |
ltedit ~/btasks/bb.edn ;; add bb.edn content to a file |
This file contains 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
yes, this is possible using --config ... | |
e.g.: foo: | |
#!/usr/bin/env bash | |
bb --config ~/my_tasks/bb.edn $@ | |
and then: | |
foo tasks | |
foo my-task |
This file contains 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
(ns $NS_NAME | |
(:require [clojure.test :as test :refer [deftest testing is]] | |
[$TEST_SUBJECT_NS :as sut] | |
[matcho.core :refer [match]])) |
This file contains 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
Not sure if this is a common case, but i would like to bundle a set of tasks with a library, and to have | |
them available to consumers of that library (maybe in the form of bb run <lib-name> <task-name>) i haven’t | |
seen anything about that in docs/open issues, so maybe i’m coming from the wrong direction? | |
borkdude:clj-kondo: 13:26 | |
@mknoszlig right now there are these options: | |
write your tasks as normal functions and make a normal library | |
use that library in tasks and hook up task names to the library functions | |
or: use the --config (+ optionally --deps-root ) flags to refer to a different bb.edn | |
(edited) |
This file contains 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
(defn abc [& {a :function/a s :sequence d :d :or {d 5}}] | |
[a s d]) | |
(abc {:function/a 2 :sequence 3 :d 4}) |
This file contains 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
(ns org.rssys.lib01 | |
(:import (java.net.http HttpClient HttpClient$Version HttpClient$Redirect | |
HttpResponse$BodyHandlers HttpRequest) | |
(java.time Duration) | |
(java.net URI))) | |
(defn http-get [^String url] | |
(let [client (-> (HttpClient/newBuilder) | |
(.version HttpClient$Version/HTTP_1_1) | |
(.followRedirects HttpClient$Redirect/NORMAL) |
This file contains 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
import './index.css' | |
import moment from 'moment' | |
console.log("Hello from JavaScript!"); | |
console.log(moment().startOf('day').fromNow()); |
This file contains 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
(defmacro ->map | |
"(->map a b) ;;=> {:a a :b b}" | |
[& symbols] | |
(assert (every? symbol? symbols)) | |
`(hash-map | |
~@(interleave (map keyword symbols) symbols))) |
This file contains 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
(ns antsgame | |
(:gen-class)) | |
(defn new-ant | |
"Create new ant" | |
[name] | |
{:name name | |
:distance 0 | |
:state :born |