Skip to content

Instantly share code, notes, and snippets.

@f-steff
Last active March 1, 2021 21:50
Show Gist options
  • Save f-steff/249a77ca90997fda5aee796c2b127006 to your computer and use it in GitHub Desktop.
Save f-steff/249a77ca90997fda5aee796c2b127006 to your computer and use it in GitHub Desktop.
Test of using markdown as part of gists

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Normal heading

Bold heading


Paragraph text Inline Code text Mistaken text. Italics Bold


Code Blocks

4 space indention
makes full-width
standard code blocks

219 bytes tron from https://www.quaxio.com/tron/ :

<body id=b onkeyup=e=event onload=
  z=c.getContext('2d');
  z.fillRect(s=0,0,n=150,x=11325);
  setInterval("
    0<x%n
    &x<n*n
    &(z[x+=[1,-n,-1,n][e.which&3]]^=1)
      ?z.clearRect(x%n,x/n,1,1,s++)
      :b.innerHTML='game⬜over:'+s
  ",9)
><canvas id=c>i
#sc_drag_area {
  height:100px;
  left:150px;
  position: absolute;
  top:100px;
  width:250px;
  z-index: 9999;
}

Checkbokses

  • Unchecked
  • Checked

  • List item one
  • List item two
    • A nested item

  1. Number list item one
    1. A nested item
    2. One more
  2. Number list item two
  3. Number list item three

Quote

Second line Quote


Standard link = http://ghost.org Custom Text Link


Image


Table

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

Inline UML (Seems not to work)

PlantUML

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml

Mermaid

sequenceDiagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob:Another authentication Response
Bob --> Alice: Another authentication Response
Loading
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Normal heading
---
Bold heading
===
---
Paragraph
text `Inline Code` text
~~Mistaken text.~~
*Italics*
**Bold**
---
Code Blocks
4 space indention
makes full-width
standard code blocks
219 bytes tron from https://www.quaxio.com/tron/ :
```js
<body id=b onkeyup=e=event onload=
z=c.getContext('2d');
z.fillRect(s=0,0,n=150,x=11325);
setInterval("
0<x%n
&x<n*n
&(z[x+=[1,-n,-1,n][e.which&3]]^=1)
?z.clearRect(x%n,x/n,1,1,s++)
:b.innerHTML='game⬜over:'+s
",9)
><canvas id=c>i
```
```css
#sc_drag_area {
height:100px;
left:150px;
position: absolute;
top:100px;
width:250px;
z-index: 9999;
}
```
---
Checkbokses
- [ ] Unchecked
- [x] Checked
---
* List item one
* List item two
* A nested item
---
1. Number list item one
1. A nested item
2. One more
2. Number list item two
3. Number list item three
---
> Quote
>
> Second line Quote
---
Standard link = http://ghost.org
[Custom Text Link](http://ghost.org)
---
![Image](https://www.refugeesrespond.org/dadaabwikimedia/images/a/a9/Example.jpg)
---
Table
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
---
Inline UML (Seems not to work)
==============================
PlantUML
--------
```plantuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml
```
Mermaid
-------
```mermaid
sequenceDiagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob:Another authentication Response
Bob --> Alice: Another authentication Response
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment