Created
December 9, 2021 08:02
-
-
Save niquola/9927ad83ffd4059f5db335f2374d1658 to your computer and use it in GitHub Desktop.
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
:zd/title "Welcome" | |
:zd/desc md/ | |
## zd | |
zd is knowlege base framework | |
## Mardown | |
Zd uses very limited and extensible subset of markdown | |
* Bold: `**bold**` => **bold** | |
* Bold: `**bold with space**` => **bold with space** | |
* Local link: `@aidbox.team.niquola` => @aidbox.team.niquola | |
* Github link: `#101` => #101 | |
* Auto-link `https://github.com` => https://github.com | |
### Functions: | |
Awailable functions `((?))`: | |
((?)) | |
* Function: `(echo 1 {:args "1"})` => ((echo {:agg "1"})) | |
### Image | |
``` | |
[[img https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Clojure_logo.svg/160px-Clojure_logo.svg.png]] | |
``` | |
[[img https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Clojure_logo.svg/160px-Clojure_logo.svg.png]] | |
### List | |
* [-] item 1 | |
* [x] item 2 | |
### Code | |
```code clojure | |
(defn my-fn [a] | |
(let [i 10] | |
(+ i a))) | |
``` | |
```code bash | |
VARIABLE="string" | |
ls -lah | grep find | |
``` | |
```code sql | |
SELECT name, resource->'value' | |
FROM patients p | |
JOIN encounters ON p.id = e.id | |
``` | |
### Hiccup example | |
```code clojure | |
[:table | |
[:thead | |
[:tr | |
[:th "head"] | |
[:th "head"]]] | |
[:tbody | |
[:tr | |
[:td "cel"] | |
[:td "cel"]]] | |
] | |
``` | |
```hiccup | |
[:table | |
[:thead | |
[:tr | |
[:th "head"] | |
[:th "head"]]] | |
[:tbody | |
[:tr | |
[:td "cel"] | |
[:td "cel"]]] | |
] | |
``` | |
```csv | |
header1, header2, header3 | |
cell1, cell2, cell3 | |
cell1, cell2, cell3 | |
cell1, cell2, cell3 | |
``` | |
:zd/comments~#~ | |
~:author aidbox.team.niquola | |
~:date "2021-11-11" | |
~:text md/ | |
Comment 1 | |
:zd/comments~#~ | |
~:author aidbox.team.niquola | |
~:date "2021-11-11" | |
~:text md/ | |
Comment 2 | |
:zd/book~:intro~ | |
~:title "Title" | |
~:text md/ | |
This is intro | |
:zd/book~:examples~ | |
~:title "Example" | |
~:text md/ | |
Examples | |
;; :zd/hiccup | |
;; [:div | |
;; [:div {:style "color:red"} | |
;; "10 * 50" [:b "="] (* 10 50)] | |
;; [:table | |
;; (-> (for [x (range 10)] | |
;; [:tr [:td "a"] [:td "b"]]) | |
;; (into [:tbody]))]] | |
;; :aidbox/report | |
;; [:ul | |
;; (->> (zd/by-tag 'incidents) | |
;; (group-by :inci/customer))] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment