diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2025-02-21 23:20:43 +0200 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2025-02-21 23:20:43 +0200 |
commit | e1c5bcb98584d03b7af6d6f1561b80d2241ad782 (patch) | |
tree | 52bcc655e5030f354a7f860a0ee78cded253119e /content/posts/code_test.md | |
parent | 0e2c742fc52445f9043d59448e2d058b9af5c4ff (diff) |
Changes to be committed:
modified: .gitignore
modified: content/about.md
new file: content/posts/Generating Functions.md
new file: content/posts/Void Linux - A Comfy Guide.md
modified: content/posts/_index.md
renamed: content/posts/code_test.md -> content/posts/code-syntax-highlighting.md
deleted: content/posts/some_cool_stuff.md
modified: content/posts/typography.md
new file: content/posts/youtube.md
renamed: content/posts/How I made this Blog with Zola.md -> content/posts/zola-blog.md
modified: static/Alphara.png
Diffstat (limited to 'content/posts/code_test.md')
-rw-r--r-- | content/posts/code_test.md | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/content/posts/code_test.md b/content/posts/code_test.md deleted file mode 100644 index ed248f9..0000000 --- a/content/posts/code_test.md +++ /dev/null @@ -1,43 +0,0 @@ -+++ -title = "Test code syntax highlight" -date = 2020-10-13 -draft = false - -[taxonomies] -tags = ["test", "code"] - -[extra] -disable_comments = false -permalink = "https://alphara.art/posts/code-test/" -toc = false - -[extra.earlier] -title = "Typography" -permalink = "https://alphara.art/posts/typography/" - -[extra.later] -title = "Henlo Internet!" -permalink = "https://alphara.art/posts/how-i-made-this-blog-with-zola/" -+++ - -```rust -fn factorial(n: u64) -> u64 { - match n { - 0 => 1, - _ => n * factorial(n-1) - } -} -``` - -```typescript -const sum = (n: number) => n * (n + 1) / 2 -``` - -```python -import os ; n_cores = os.cpu_count() // 2 ; - -from concurrent.futures import ThreadPoolExecutor - -with ThreadPoolExecutor(max_workers=n_cores) as executor: - executor.map(render, range(0, len(image_array))) -``` |