User Tools

Site Tools


playground:playground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
playground:playground [2012/10/23 12:21]
andy
playground:playground [2013/07/11 16:59]
andy
Line 1: Line 1:
 ====== PlayGround ====== ====== PlayGround ======
- 
-This page is used to check syntax uncertainties and test the installation of new plugins. 
- 
-===== Graphviz ===== 
  
 <​graphviz>​ <​graphviz>​
-digraph ​finite_state_machine ​{ +digraph ​sequence ​{
-        graph [dpi=60]; +
- rankdir=LR;​ +
- size="​9,​5"​ +
- node [shape = doublecircle];​ LR_0 LR_3 LR_4 LR_8; +
- node [shape = circle]; +
- LR_0 -> LR_2 [ label = "​SS(B)"​ ]; +
- LR_0 -> LR_1 [ label = "​SS(S)"​ ]; +
- LR_1 -> LR_3 [ label = "​S($end)"​ ]; +
- LR_2 -> LR_6 [ label = "​SS(b)"​ ]; +
- LR_2 -> LR_5 [ label = "​SS(a)"​ ]; +
- LR_2 -> LR_4 [ label = "​S(A)"​ ]; +
- LR_5 -> LR_7 [ label = "​S(b)"​ ]; +
- LR_5 -> LR_5 [ label = "​S(a)"​ ]; +
- LR_6 -> LR_6 [ label = "​S(b)"​ ]; +
- LR_6 -> LR_5 [ label = "​S(a)"​ ]; +
- LR_7 -> LR_8 [ label = "​S(b)"​ ]; +
- LR_7 -> LR_5 [ label = "​S(a)"​ ]; +
- LR_8 -> LR_6 [ label = "​S(b)"​ ]; +
- LR_8 -> LR_5 [ label = "​S(a)"​ ]; +
-+
-</​graphviz>​ +
- +
-<​graphviz>​ +
-digraph sequence_diagram { +
-  graph [dpi=60];+
   node [shape=box];​   node [shape=box];​
-  { rank=same; "Client"; "Proxy"; "Server"; }+  {rank=same; "a"; "c"; "b";}
   node [shape=point];​   node [shape=point];​
-  "Client" -> "A" [arrowhead=none];​ +  "a" -> "src_1" [arrowhead=none];​ 
-  "Proxy" -> "B" [arrowhead=none];​ +  "b" -> "dst_1" [arrowhead=none];​ 
-  { rank=same; "A" -> "B" [label="​GET /image.png"]; } +  {rank=same; "src_1" -> "dst_1" [label="​Hello there"];} 
-  "B" -> "C" [arrowhead=none];​ +  "dst_1" -> "src_2" [arrowhead=none];​ 
-  "Server" -> "D" [arrowhead=none];​ +  "src_1" -> "dst_2" [arrowhead=none];​ 
-  { rank=same; "C" -> "D" [label="​GET /image.png"]; } +  {rank=same; "dst_2" -> "src_2" [label="​Hello" ​dir=back];} 
-  "D" -> "E" [arrowhead=none];​ +  "dst_2" -> "src_3" [arrowhead=none];​ 
-  "C" -> "F" [arrowhead=none];​ +  "src_2" -> "dst_3" [arrowhead=none];​ 
-  { rank=same; "F" -> "E" [label="​200 OK" dir=back]; } +  {rank=same; "src_3" -> "dst_3" [label="​Can I have 5 pounds?"​];​} 
-  "A" -> "H" [arrowhead=none];​ +  "​dst_3"​ -> "​src_4"​ [arrowhead=none];​ 
-  "F" -> "G" [arrowhead=none];​ +  "​src_3"​ -> "​dst_4"​ [arrowhead=none];​ 
-  { rank=same; "H" -> "G" [label="​200 OK" ​dir=back]; }+  {rank=same; "​dst_4"​ -> "​src_4"​ [label="​No" dir=back];​} 
 +  "dst_4" -> "src_5" [arrowhead=none];​ 
 +  "c" -> "dst_5" [arrowhead=none];​ 
 +  {rank=same; "src_5" -> "dst_5" [label="​Isn't b mean"];} 
 +  "​src_4"​ -> "​src_6"​ [arrowhead=none]; 
 +  "​dst_5"​ -> "​dst_6"​ [arrowhead=none];​ 
 +  {rank=same; "​src_6"​ -> "​dst_6"​ [label="​No I'm not"];} 
 +  node [shape=box] 
 +  {rank=same; "​end_a"​ [label="​a"​];"​end_c"​ [label="​c"​];"​end_b"​ [label="​b"​];​} 
 +  "​src_5"​ -> "​end_a"​ [arrowhead=none];​ 
 +  "​dst_6"​ -> "​end_c"​ [arrowhead=none];​ 
 +  "​src_6"​ -> "​end_b"​ [arrowhead=none];​
 } }
 </​graphviz>​ </​graphviz>​
  
playground/playground.txt · Last modified: 2016/07/06 06:57 (external edit)