Code test
I wanted to test how inline code would show up in markdown. Does it format correctly, and is the syntax highlighting working as expected? I think it looks pretty good. It is nice when things don’t need to be configured. I also found at that naming a file code.md
apparently breaks something which prevents it from loading in the site generator. That is a bit annoying, but if it is just that I think I can survive.
I’m not sure if this counts as starting a blog, but I’m glad to finally get this ball rolling. Let’s see where it goes from here. There are already two posts now which is pretty amazing when you think about it.
Rust
use std::thread;
use std::time::Duration;
let handles = Vec::new();
for i in 0..10 {
handles.push(thread::spawn(move || {
thread::sleep(Duration::from_secs(1));
println!("thread {} done", i);
});
}
for handle in handles {
handle.join().unwrap();
}
Bash
#!/usr/bin/env bash
echo hello;
Go
import fmt
func main() {
fmt.Println("Hello world!")
}