parent
073f2db077
commit
2673ba7d8c
13 changed files with 129 additions and 1 deletions
@ -0,0 +1,2 @@ |
|||||||
|
/target/ |
||||||
|
/public/ |
@ -0,0 +1,3 @@ |
|||||||
|
[submodule "themes/terminimal"] |
||||||
|
path = themes/terminimal |
||||||
|
url = https://github.com/pawroman/zola-theme-terminimal.git |
@ -0,0 +1,7 @@ |
|||||||
|
# This file is automatically @generated by Cargo. |
||||||
|
# It is not intended for manual editing. |
||||||
|
version = 3 |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "ortem_xyz" |
||||||
|
version = "0.1.0" |
@ -0,0 +1,43 @@ |
|||||||
|
# The URL the site will be built for |
||||||
|
base_url = "https://ortem.xyz" |
||||||
|
|
||||||
|
# Whether to automatically compile all Sass files in the sass directory |
||||||
|
compile_sass = true |
||||||
|
|
||||||
|
theme = "terminimal" |
||||||
|
|
||||||
|
# Whether to build a search index to be used later on by a JavaScript library |
||||||
|
build_search_index = true |
||||||
|
|
||||||
|
taxonomies = [ |
||||||
|
{name = "tags"}, |
||||||
|
] |
||||||
|
|
||||||
|
[markdown] |
||||||
|
# Whether to do syntax highlighting |
||||||
|
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola |
||||||
|
highlight_code = true |
||||||
|
highlight_theme = "kronuz" |
||||||
|
|
||||||
|
[extra] |
||||||
|
accent_color = "red" |
||||||
|
background_color = "dark" |
||||||
|
|
||||||
|
logo_text = "Ortem's kennel" |
||||||
|
#author = "Artёm Sidorenko" |
||||||
|
copyright_html = "© 2022 Artёm Sidorenko<br>fuck copyrights btw" |
||||||
|
|
||||||
|
menu_items = [ |
||||||
|
{name = "blog", url = "$BASE_URL/blog"}, |
||||||
|
{name = "about me", url = "$BASE_URL/about"}, |
||||||
|
|
||||||
|
# set newtab to true to make the link open in new tab |
||||||
|
#{name = "github", url = "https://github.com/plazmoid", newtab = true}, |
||||||
|
|
||||||
|
{name = "projects", url = "$BASE_URL/projects"}, |
||||||
|
{name = "links", url = "$BASE_URL/links"}, |
||||||
|
{name = "tags", url = "$BASE_URL/tags"}, |
||||||
|
|
||||||
|
# just a placeholder to satisfy zola |
||||||
|
{name = "", url = "$BASE_URL/"}, |
||||||
|
] |
@ -0,0 +1,3 @@ |
|||||||
|
+++ |
||||||
|
+++ |
||||||
|
CV placeholder |
@ -0,0 +1,7 @@ |
|||||||
|
+++ |
||||||
|
+++ |
||||||
|
|
||||||
|
|
||||||
|
Are you an employer and looking for a Middle Rust Developer? Don't hesitate to check out my [CV](/about/cv) and [portfolio](/projects)! |
||||||
|
|
||||||
|
Not enough? You wanna dig into my mind [deeper](/about/mind)? |
@ -0,0 +1,3 @@ |
|||||||
|
+++ |
||||||
|
+++ |
||||||
|
Where is my mind? |
@ -0,0 +1,3 @@ |
|||||||
|
+++ |
||||||
|
sort_by = "date" |
||||||
|
+++ |
@ -0,0 +1,23 @@ |
|||||||
|
+++ |
||||||
|
title = "Tricky questions for any rust interview" |
||||||
|
date = "2022-08-18" |
||||||
|
|
||||||
|
[taxonomies] |
||||||
|
tags = ["rust"] |
||||||
|
+++ |
||||||
|
|
||||||
|
Which type has variable `result`? |
||||||
|
```rust |
||||||
|
fn count_uppercase(s: &str) -> usize { |
||||||
|
let result = { |
||||||
|
let upper = s.chars().filter(|c| c.is_uppercase()).collect::<String>(); |
||||||
|
return upper.len(); |
||||||
|
}; |
||||||
|
} |
||||||
|
``` |
||||||
|
|
||||||
|
<details><summary>Answer</summary> |
||||||
|
|
||||||
|
`result` has '!' type or 'never type'. . [Read more](https://doc.rust-lang.org/book/ch19-04-advanced-types.html#the-never-type-that-never-returns) |
||||||
|
|
||||||
|
</details> |
@ -0,0 +1,3 @@ |
|||||||
|
+++ |
||||||
|
+++ |
||||||
|
You're on ortem's website! Use top menu to navigate. |
@ -0,0 +1,17 @@ |
|||||||
|
+++ |
||||||
|
+++ |
||||||
|
|
||||||
|
* [Source code of ortem.xyz](https://git.ortem.xyz/root/ortem.xyz) |
||||||
|
|
||||||
|
|
||||||
|
* [Yet another one brainfuck interpreter](https://github.com/plazmoid/brainfuck-rust) |
||||||
|
|
||||||
|
|
||||||
|
* [unki](https://git.ortem.xyz/root/unki): cross-platform remote admin tool for not enough smart house |
||||||
|
|
||||||
|
|
||||||
|
* [sockser](https://git.ortem.xyz/root/sockser): small program to establish and maintain SOCKS5-tunnel via ssh client |
||||||
|
|
||||||
|
* [Teeworlds](https://github.com/plazmoid/teeworlds): rough clone of original [game](https://www.teeworlds.com/) written in python+pygame |
||||||
|
|
||||||
|
* [bind-it](https://github.com/plazmoid/bind_it): small nightly-rust crate that allows to write `let n: impl Trait = 1;` |
@ -1,3 +1,10 @@ |
|||||||
fn main() { |
fn main() { |
||||||
println!("Hello, world!"); |
println!("{}", count_uppercase("Lol PiDor")); |
||||||
|
} |
||||||
|
|
||||||
|
fn count_uppercase(str: &str) -> usize { |
||||||
|
let result = { |
||||||
|
let upper = str.chars().filter(|c| c.is_uppercase()).collect::<String>(); |
||||||
|
return upper.len(); |
||||||
|
}; |
||||||
} |
} |
||||||
|
@ -0,0 +1,7 @@ |
|||||||
|
{% extends "index.html" %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
{% for post in section.pages %} |
||||||
|
<h1><a href="{{ post.permalink }}">{{ post.title }}</a></h1> |
||||||
|
{% endfor %} |
||||||
|
{% endblock content %} |
Loading…
Reference in new issue