Snippets
About 3 min
Snippets 관련
Flowchart
Simple
Diagram
Code
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
Live Network Diagram Influxdb Grafana
Diagram
Code
graph TD
linkStyle default interpolate basis
wan1[<center>DSL 100/10 Mb<br><br>10.100.102.1</center>]---router{<center>EdgeRouter-X<br><br>10.20.30.1</center>}
ip((<center><br>IP<br><br></center>))-.-router
dns((<center><br>DNS<br><br></center>))-.-router
wan2[<center>LTE 50/20 Mb<br><br>192.168.1.1</center>]---router
router---|100Mb|ap[<center>RT-AC1200<br><br>10.20.30.3</center>]
router---|1Gb|pc(<center>PC<br><br>10.20.30.190</center>)
router---|1Gb|switch[<center>TL-SG105E<br><br>10.20.30.2</center>]
subgraph red1
ap-.-cam1(<center>Camera<br><br>10.20.30.171</center>)
ap-.-cam2(<center>Camera<br><br>10.20.30.172</center>)
ap-.-phone(<center>Phone<br><br>10.20.30.191</center>)
ap-.-ir(<center>IR<br><br>10.20.30.180</center>)
end
subgraph red2
switch---|100Mb|pi1(<center>RPi 3B<br><br>10.20.30.150</center>)
switch---|1Gb|pi2(<center>RPi 3B+<br><br>10.20.30.151</center>)
switch---|100Mb|nvr(<center>NVR<br><br>10.20.30.170</center>)
switch---|1Gb|laptop(<center>Laptop<br><br>10.20.30.192</center>)
end
Sequence
Click here to view code
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
Gantt
Click here to view code
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram to mermaid
excludes weekdays 2014-01-10
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
Class
Click here to view code
classDiagram
Class01 <|-- AveryLongClass : Cool
Class03 *-- Class04
Class05 o-- Class06
Class07 .. Class08
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
Class08 <--> C2: Cool label