random thoughts

Hugo Tests

Hello 👋

This is my first test post to test language rendering for Go and Bash and how to use pictures.

Something written in Go with highlights

1package main
2
3import "fmt"
4
5func main() {
6    for i := 0; i < 3; i++ {
7        fmt.Println("Value of i:", i)
8    }
9}

Another thing written in Go without highlights

1package foo
2
3func Bar() (string, error) {
4     println("Hello foo.Bar!")
5     return "foo", nil
6}

Now a little bit of bash:

 1function foo () {
 2     echo "Hello Bash!"
 3}
 4
 5cat <<EOF
 6Hello World!
 7EOF
 8
 9while [ 1 ]
10do
11        echo -n "."
12        sleep 0.5
13done

A bit of goat

A 1 2 3 B

QR code: QR code of skipper user documentation

A bit of mathjax

\[ \begin{aligned} KL(\hat{y} || y) &= \sum_{c=1}^{M}\hat{y}_c \log{\frac{\hat{y}_c}{y_c}} \\ JS(\hat{y} || y) &= \frac{1}{2}(KL(y||\frac{y+\hat{y}}{2}) + KL(\hat{y}||\frac{y+\hat{y}}{2})) \end{aligned} \]

A bit of inline mathjax \(a^*=x-b^*\) and \(\alpha \gt \beta\).

SVG with figure:

A CPU flamegraph

CPU flamegraph

PNG figure:

Link to skipper as logo

skipper logo

Tests

{{ $v1 := 6 }} {{ $v2 := 7 }}

{{ $d = time.ParseDuration “3.5h2.5m1.5s” }} {{ $d.Hours }}

Resources

resources.Get (global assets) {{ with resources.Get “perf.svg” }} {{ end }}

Resources.Get picture (per page) and try to render:

{{ $image := .Resources.Get “./skipper.png” }} {{ with $image }} {{ end }}

{{ $image := .Resources.Get “skipper.png” }} {{ with $image }} ![skipper logo markdown styl does not work]({{ .RelPermalink }}) {{ end }}

end :) O:)