diff options
author | delta <darkussdelta@gmail.com> | 2025-09-13 19:55:00 +0200 |
---|---|---|
committer | delta <darkussdelta@gmail.com> | 2025-09-13 19:55:00 +0200 |
commit | 031bf426ca73146d9253548e77f90ec112ebcedb (patch) | |
tree | b3dcd2de915ba1c31ad7bec2e30fc44df9226251 /examples |
initial commit
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example.cpp | 7 | ||||
-rw-r--r-- | examples/example.md | 67 | ||||
-rw-r--r-- | examples/example.py | 4 |
3 files changed, 78 insertions, 0 deletions
diff --git a/examples/example.cpp b/examples/example.cpp new file mode 100644 index 0000000..3fe19e7 --- /dev/null +++ b/examples/example.cpp @@ -0,0 +1,7 @@ +#include <iostream> + +int main() { + std::cout << "Hello World!"; + return 0; +} + diff --git a/examples/example.md b/examples/example.md new file mode 100644 index 0000000..e6bba24 --- /dev/null +++ b/examples/example.md @@ -0,0 +1,67 @@ +# Markdown syntax guide + +## Headers + +# This is a Heading h1 +## This is a Heading h2 +###### This is a Heading h6 + +## Emphasis + +*This text will be italic* +_This will also be italic_ + +**This text will be bold** +__This will also be bold__ + +_You **can** combine them_ + +## Lists + +### Unordered + +* Item 1 +* Item 2 +* Item 2a +* Item 2b + +### Ordered + +1. Item 1 +2. Item 2 +3. Item 3 + 1. Item 3a + 2. Item 3b + +## Images + + + +## Links + +You may be using [Markdown Live Preview](https://markdownlivepreview.com/). + +## Blockquotes + +> Markdown is a lightweight markup language with plain-text-formatting syntax, created in 2004 by John Gruber with Aaron Swartz. +> +>> Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor. + +## Tables + +| Left columns | Right columns | +| ------------- |:-------------:| +| left foo | right foo | +| left bar | right bar | +| left baz | right baz | + +## Blocks of code + +``` +let message = 'Hello world'; +alert(message); +``` + +## Inline code + +This web site is using `markedjs/marked`. diff --git a/examples/example.py b/examples/example.py new file mode 100644 index 0000000..cbeb099 --- /dev/null +++ b/examples/example.py @@ -0,0 +1,4 @@ +def kos_root(): + """Return the pathname of the KOS root directory.""" + global _kos_root + if _kos_root: return _kos_root |