Skip to content

Instantly share code, notes, and snippets.

@loikein
Last active May 3, 2023 15:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loikein/27ef6913386b206d1b3c18b8e93c5768 to your computer and use it in GitHub Desktop.
Save loikein/27ef6913386b206d1b3c18b8e93c5768 to your computer and use it in GitHub Desktop.
Markdown app/programme test file
Animal Thing
Cat
Mat

hello world

[TOC]

{{TOC}}

Formatting

#tag

Bold, bold, 加粗

Italic, italic, 斜体

Underline, underline

Strike, strike, strike, strike, --strike--

Highlight, =highlight=, ==highlight==

Internal link: [[202005191919]]

Footnote1, footnote2

——

Lists

  • ul
  • Unordered list
  1. ol
  2. Ordered list

dl : dt : Description list

  • Task list
  • Task list

Code

Inline code, `escape`, and keystroke

package main

import "log"

func add(x int, y int) int {
  log.Println("We are going to take the sum of two numbers, and leave a very very very long comment.")
  return x + y
}

func main() {
  y := add(1, 2)
  log.Println(y)
}

Here's an example with line numbers.

package main

import "log"

func add(x int, y int) int {
  log.Println("We are going to take the sum of two numbers, and leave a long comment.")
  return x + y
}

func main() {
  y := add(1, 2)
  log.Println(y)
}

Font

我能体に傷つけないで吞下 259 ml glass。

Four score and seven years ago our fathers brought forth upon this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

0 Oo Ii Ll 1 | 2 Z 5 s 8 Bb 6 #*^~(){}[] . , : ; “ ‘ ’ `

0 Oo Ii Ll 1 | 2 Z 5 s 8 Bb 6 #*^~(){}[] . , : ; “ ‘ ’ `

Inline HTML

ref: https://burk.io/2020/let-there-be-dark

#282a36
#f8f8f2

LaTeX & Table

$\LaTeX{}$

$$R_1 \begin{cases} >\mu_{2} \ \leq \mu_{2} \end{cases}$$

Message to agent 1 $M_1$
Agent 1's action $a_1$
New finding $R_1\begin{cases}>\mu_{2}\\leq\mu_{2}\end{cases}$

Figure

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob—>Alice: I am good thanks!
pie
    title Pie Chart
    “Dogs” : 386
    “Cats” : 85
    “Rats” : 150 
st=>start: Agent
op=>operation: Your Operation
cond=>condition: Yes or No?
e=>end

st->op->cond
cond(yes)->e
cond(no)->op

Footnotes

  1. The linked footnote appears at the end of the document.

  2. New lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment