Markdown Diagrams
Table of contents
one of of the following:
${toc}
[[toc]]
[toc]
[[_toc_]]
${toc}
Image Embedding
Set size (400x200)
Dyanmic (100%)
PlantUML
@startuml Bob -> Alice : hello @enduml
Or
Bob -> Alice : hello
KaTeX
$\sqrt{3x-1}+(1+x)^2$
\[\begin{array}{c} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} & = 0 \end{array}\]mermaid
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Widgets
Widget v1 Sprint :a1, 2024-01-01, 14d
Widget v1 Review :a2, after a1, 7d
Widget v2 Sprint :a3, after a2, 14d
Widget v2 Review :a4, after a3, 7d
section Gadgets
Gadget v1 Sprint :b1, 2024-01-01, 14d
Gadget v1 Review :b2, after b1, 7d
Gadget v2 Sprint :b3, after b2, 14d
Gadget v2 Review :b4, after b3, 7d
js-sequence-diagrams
sequenceDiagram
Note over OrderManager: Receive Order for Widgets, Gadgets, Gizmos
OrderManager->>Database: Create Order record, status `verified`
OrderManager->>GoogleSheet: Append row to `orders`, `verified` = TRUE
OrderManager->>WidgetFactory: POST req, production order
OrderManager->>GadgetFactory: POST req, production order
OrderManager->>GizmoFactory: POST req, production order
Note over WidgetFactory: Schedule production order
Note over GadgetFactory: Schedule production order
Note over GizmoFactory: Schedule production order
WidgetFactory->>OrderManager: POST res, PO received
GadgetFactory->>OrderManager: POST res, PO received
GizmoFactory->>OrderManager: POST res, PO received
OrderManager->>Database: Update Order record, status `in_production`
OrderManager->>GoogleSheet: Modify row in `orders`, `in_production` = TRUE
Note over WidgetFactory: Execute production order
Note over GadgetFactory: Execute production order
Note over GizmoFactory: Execute production order
WidgetFactory->>OrderManager: Webhook, order completed
GadgetFactory->>OrderManager: Webhook, order completed
GizmoFactory->>OrderManager: Webhook, order completed
OrderManager->>Database: Update Order record, status `completed`
OrderManager->>GoogleSheet: Modify row in `orders`, `completed` = TRUE
Flowchart
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End|future:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|future
st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
dot
digraph G {
subgraph cluster_0 {
style=filled;
color=lightgrey;
node [style=filled,color=white];
a0 -> a1 -> a2 -> a3;
label = "process #1";
}
subgraph cluster_1 {
node [style=filled];
b0 -> b1 -> b2 -> b3;
label = "process #2";
color=blue
}
start -> a0;
start -> b0;
a1 -> b3;
b2 -> a3;
a3 -> a0;
a3 -> end;
b3 -> end;
start [shape=Mdiamond];
end [shape=Msquare];
}
chart.js
{
"type": "pie",
"data": {
"labels": [
"Red",
"Blue",
"Yellow"
],
"datasets": [
{
"data": [
300,
50,
100
],
"backgroundColor": [
"#FF6384",
"#36A2EB",
"#FFCE56"
],
"hoverBackgroundColor": [
"#FF6384",
"#36A2EB",
"#FFCE56"
]
}
]
},
"options": {}
}
Published on 09 Jan 2024
all tags
100daysofcode activerecord android annoyances api apt arch array artix atom az3w backend bash blog browser bug callback career ci-cd cli cloud code coding config configuration cp crud cryptography css csv database db design devops django docker email erp feelsgood filter fugitive gif gist git gnome gnome pomodoro grep hebrew http ide isbn-fetcher iso javascript job search js kanban kindle koans learning linkedin linux logger manjaro map markdown microservices mobi mtp neovim nodejs nvchad packages panda pastbin patch portfolio post postgres pytest python rails reduce refactoring reflections rest routes rspec ruby salesforce script scripting security sed shell sql string_replacement study tdd terminal testing tmux ttd version_control vim vim sort walkthrough webdev workflow zsh