Because we forget, we write. I created this blog mainly as a memo, keeping track of what I have learned and what I am becoming interested in. Since the posts will be generated using Markdown, I guess it is a good starting point to put down some tips for markdown usage. OK, Let’s us get started.

More about Markdown is available in Writing in GitHub.

Headings

Headings are ranked using #. More #, lower rank and smaller size.

1
2
# H1
#### H4

H1

H4

Text Styles

1
2
3
*Italic* 
**Bold**
~~Strikthrough~~

Italic (_ works the same as *)
Bold
Strikethrough

URLs will be automatically highlighted as links. For example, https://caizkun.github.io .
Moreover, you can insert a link as follows:

1
[Cai's Blog](https://caizkun.github.io "Mouse Hover Text")

Cai’s Blog

Images

1
![Slam Dunk Buddies](/images/slam_dunk.jpg "Happy  Training!")

Slam Dunk Buddies

Code

Inline codes are embraced with back-ticks ` `.
For example, std::cout << Hellow World! << std::endl;

Code blocks are embraced with three back-ticks at both ends and syntax highlighting is enabled.

1
2
3
4
5
6
7
8
9
```Cpp
// C++ is awesome!
#include <iostream>

int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
```
1
2
3
4
5
6
7
// C++ is awesome!
#include <iostream>

int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
1
2
3
4
5
6
7
8
```Java

// Java is cool!
public class Greeting {
public static void main(String[] args) {
System.out.println("Hello World!");
}
```
1
2
3
4
5
// Java is cool!
public class Greeting {
public static void main(String[] args) {
System.out.println("Hello World!");
}

Quotes

1
2
> "Pain is inevitatble. Suffering is optional."
> --**Haruki Murakami, What I Talk About When I Talk About Running**

“Pain is inevitatble. Suffering is optional.”
Haruki Murakami, What I Talk About When I Talk About Running

Lists

1
2
3
4
5
6
7
8
9
1. Ordered Item1
* Sub Unordered Item1a (note the indentation)
* Sub Unordered Item1b
5. Ordered Item2 (numbering continued correctly, the leading number doesn't matter)

7. Ordered Item3 (one blank line doesn't stop the numbering)


4. New Ordered Item1 (two or more blank lines starts a new numbering)
  1. Ordered Item1

    • Sub Unordered Item1a (note the indentation)
    • Sub Unordered Item1b
  2. Ordered Item2 (numbering continued correctly, the leading number doesn’t matter)

  3. Ordered Item3 (one blank line doesn’t stop the numbering)

  1. New Ordered Item1 (two or more blank lines starts a new numbering)

Tables

Tables can be created by using - and | to aggregate words. : can be used to align text.

1
2
3
4
| Pred\Obs  | True | False |
|:---------:|:-----|------:|
| True | 2032 | 23 |
| False | 50 | 195 |
Pred\Obs True False
True 2032 23
False 50 195