summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2019-12-05 19:12:30 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2019-12-05 19:12:30 +0800
commitf5c4f00f795ea4f9889b59c574f31c980a788df3 (patch)
tree05e419d8bdc133993a4d066fbb18d7e2e0538de3
parent8f272c286a6c1eb821704a678f2b11dbe39a04b9 (diff)
chore: add new example posts
-rw-r--r--_posts/2017-12-04-plantuml-example.md72
-rw-r--r--_posts/2017-12-15-table-example.md91
2 files changed, 163 insertions, 0 deletions
diff --git a/_posts/2017-12-04-plantuml-example.md b/_posts/2017-12-04-plantuml-example.md
new file mode 100644
index 0000000..399fb9f
--- /dev/null
+++ b/_posts/2017-12-04-plantuml-example.md
@@ -0,0 +1,72 @@
+---
+layout: post
+title: Plantuml example
+categories: example
+tags: [plantuml]
+---
+
+## My First PlantUML
+
+`` ini
+aaa = 123
+````
+``
+
+
+### PlantUML Block-1
+@startuml
+Bob -> Alice : hello
+@enduml
+
+
+### PlantUML Block-2
+``` plantuml
+Bob -> Alice : hello world
+```
+
+
+### PlantUML Block-3
+@startuml
+(*) --> "Initialization"
+
+if "Some Test" then
+ -->[true] "Some Activity"
+ --> "Another activity"
+ -right-> (*)
+else
+ ->[false] "Something else"
+ -->[Ending process] (*)
+endif
+@enduml
+
+
+### PlantUML Block-4
+
+@startuml
+skinparam handwritten true
+
+skinparam usecase {
+ BackgroundColor DarkSeaGreen
+ BorderColor DarkSlateGray
+
+ BackgroundColor<< Main >> YellowGreen
+ BorderColor<< Main >> YellowGreen
+
+ ArrowColor Olive
+ ActorBorderColor black
+ ActorFontName Courier
+
+ ActorBackgroundColor<< Human >> Gold
+}
+
+User << Human >>
+:Main Database: as MySql << Application >>
+(Start) << One Shot >>
+(Use the application) as (Use) << Main >>
+
+User -> (Start)
+User --> (Use)
+
+MySql --> (Use)
+
+@enduml
diff --git a/_posts/2017-12-15-table-example.md b/_posts/2017-12-15-table-example.md
new file mode 100644
index 0000000..0ab5df7
--- /dev/null
+++ b/_posts/2017-12-15-table-example.md
@@ -0,0 +1,91 @@
+---
+layout: post
+title: Table example
+subtitle:
+categories: example
+tags: [table]
+---
+
+## Table example as below
+
+**For now, these extended features are provided:**
+
+* Cells spanning multiple columns
+* Cells spanning multiple rows
+* Cells text align separately
+* Table header not required
+* Grouped table header rows or data rows
+
+
+### Rowspan and Colspan
+^^ in a cell indicates it should be merged with the cell above.
+This feature is contributed by [pmccloghrylaing](https://github.com/pmccloghrylaing).
+
+| Stage | Direct Products | ATP Yields |
+| ----: | --------------: | ---------: |
+|Glycolysis | 2 ATP ||
+|^^ | 2 NADH | 3--5 ATP |
+|Pyruvaye oxidation | 2 NADH | 5 ATP |
+|Citric acid cycle | 2 ATP | |
+|^^ | 6 NADH | 15 ATP |
+|^^ | 2 FADH | 3 ATP |
+| 30--32 ATP |||
+
+[ Net ATP yields per hexose]
+
+### Multiline
+A backslash at end to join cell contents with the following lines.
+This feature is contributed by [Lucas-C](https://github.com/Lucas-C).
+
+|: Easy Multiline :|||
+|:------ |:------ |:-------- |
+| Apple | Banana | Orange \
+| Apple | Banana | Orange \
+| Apple | Banana | Orange
+| Apple | Banana | Orange \
+| Apple | Banana | Orange |
+| Apple | Banana | Orange |
+
+
+### Headerless
+Table header can be eliminated.
+
+|--|--|--|--|--|--|--|--|
+|♜ | |♝ |♛ |♚ |♝ |♞ |♜ |
+| |♟ |♟ |♟ | |♟ |♟ |♟ |
+|♟ | |♞ | | | | | |
+| |♗ | | |♟ | | | |
+| | | | |♙ | | | |
+| | | | | |♘ | | |
+|♙ |♙ |♙ |♙ | |♙ |♙ |♙ |
+|♖ |♘ |♗ |♕ |♔ | | |♖ |
+
+
+### Text Alignment
+Table cell can be set alignment separately.
+
+| \:Fruits || Food: |
+|:-------- |:------ |:-------- |
+| Apple | Banana | Orange |
+| Apple | Banana | Orange |
+
+
+| | Fruits\:: ||
+|:-------- |:------ |:-------- |
+| Apple | Banana | Orange |
+| Apple | Banana | Orange |
+
+|: \:Fruits :|| |: Food :||
+|:-------- |:------ |:-------- |:-------- |:------ |
+| Apple | Banana | Orange |: Strawberry :|
+| Apple | Banana | Orange | Peach :| |
+
+|: Fruits \|\| Food :|||
+|:-------- |:-------- |:------------ |
+| Apple |: Apple :| Apple \
+| Banana | Banana | Banana \
+| Orange | Orange | Orange |
+|: Rowspan is 4 :|| How's it? |
+|^^ A. Peach || 1. Fine :|
+|^^ B. Orange ||^^ 2. Bad |
+|^^ C. Banana || It's OK! |