fkr.dev

About

Hio, this is Flo. Born 1990, I like doing things and this is my blog. Into lisps, oil painting and esoteric text editors. On the interwebs I like to appear as a badger interested in cryptography. Every other decade I like spinning old jazz/funk records or programming experimental electronic music as Winfried Scratchmann. Currently located in Aix la Chapelle.

Table of Contents
    Simple formatting
    Keep lists over blocks
    Latex
    Latex after a headline?
    let us try this again
    look how great it looks in emacs :(
    Code highlight
    Python
    Shell
    Latex
    Elisp
    Clojure
    The End:

Hello, world!

In the beginning there was the word mathematics.

Are we there yet?

Simple formatting

BOLD text
Codified text
Strikethrough text
<u>Underlined text</u>
Italic text
verbatim text

Keep lists over blocks

  1. Here we are starting a list
  • Whoops there is another item

  • Aand anotherone. Now, a source block:

  echo dud! # woho

Now, the list continues(!)…

  • and we have another item

Latex

Latex after a headline?

$$ \lambda = e^{2_{\pi}} \leftrightarrow \text{hello} \rightarrow := 1^{1/2} $$

let us try this again

$$ e ^ {i \theta} = \cos \theta + i \sin \theta $$

And the toughest:

look how great it looks in emacs :(

  • And also does this funky chart render?

why does it need a headline?

{:data {:values  [{:power 1 :speed 2 :engine :v8}
                  {:power 3 :speed 4 :engine :v6}
                  {:power 8 :speed 7 :engine :v8}
                  {:power 4 :speed 3.5 :engine :v8}
                  {:power 5 :speed 4 :engine :v8}
                  {:power 1.2 :speed 3 :engine :v6}
                  {:power 3.2 :speed 3.8 :engine :v6}
                  {:power 7.5 :speed 7.2 :engine :v6}]}
  :mark {:type :point
         :tooltip true}
  :width 500
  :height 400
  :encoding {:x {:field :power}
             :y {:field :speed}
             :color {:field :engine}
             :size {:value 80}}}

And also how do i plan to store images?

:whatisthis:blog:ATTACH:

A wise man once said, .. eh well, nothing,
i mean, the wise man said nothing, but..
well it was the right thing to do at this
point and yeah they called him the wise man
for a reason, eh? umm anyways the point is
..

<div class="keywords">

fun, samplekw, lefkr

</div>

Code highlight

Python

look, there is python code:

import os
os.system("Hack the planet!")

Shell

aaaand, shell code:

echo "Dud!";
MYVAR="testestest"
function hello {
    if cat somefile | grep -o "nono"; then
        echo "huhu"
        exit 1
    else
        echo nono
        exit 255
    fi
}

Latex

Hmm latex code:

\begin{eqnarray*}
    && (\lambda xyz.xyz)(\lambda x.xx)(\lambda x.x)x \\
    & \to_\beta & (\lambda yz.xyz)[x := \lambda x.xx](\lambda x.x)x \\
    & \equiv & (\lambda yz.(\lambda x.xx)yz)(\lambda x.x)x \\
    & \to_\beta & (\lambda yz.(xx)[ x := y]z)(\lambda x.x)x \\
    & \equiv & (\lambda yz.yyz)(\lambda x.x)x \\
    & \to_\beta & (\lambda z.yy)[ y := \lambda x.x ]x \\
    & \equiv & (\lambda z.(\lambda x.x)(\lambda x.x)z)x \\
    & \to_\beta & (\lambda z.x[x := \lambda x.x]z)x \\
    & \equiv & (\lambda z.(\lambda x.x)z)x \\
    & \to_\beta & (\lambda z.x[x := z])x \\
    & \equiv & (\lambda z.z)x \\
    & \to_\beta & z[z := x] \\
    & \equiv & x
\end{eqnarray*}
  • Latex Code in a list:
  \begin{eqnarray*}
      && (\lambda xyz.xyz)(\lambda x.xx)(\lambda x.x)x \\
      & \to_\beta & (\lambda yz.xyz)[x := \lambda x.xx](\lambda x.x)x \\
      & \equiv & (\lambda yz.(\lambda x.xx)yz)(\lambda x.x)x \\
      & \to_\beta & (\lambda yz.(xx)[ x := y]z)(\lambda x.x)x \\
      & \equiv & (\lambda yz.yyz)(\lambda x.x)x \\
      & \to_\beta & (\lambda z.yy)[ y := \lambda x.x ]x \\
      & \equiv & (\lambda z.(\lambda x.x)(\lambda x.x)z)x \\
      & \to_\beta & (\lambda z.x[x := \lambda x.x]z)x \\
      & \equiv & (\lambda z.(\lambda x.x)z)x \\
      & \to_\beta & (\lambda z.x[x := z])x \\
      & \equiv & (\lambda z.z)x \\
      & \to_\beta & z[z := x] \\
      & \equiv & x
  \end{eqnarray*}

<!-- -->

  • Latex Rendered inline in a list
    Simple \ λ \ works?

Simple expression in a sentence, not in a list: $ 1 + 2 := 3 $. Simple expression in double-dollar-signs, not in a list: $$1 + 2 \rightarrow 3$$

Elisp

Well i obviously need code highlight:

(defun fkr//rg-localedit (action change)
  (unless (boundp 'fkr//rg-reset)
    (setq fkr//rg-reset consult-ripgrep-args))
  (unless (boundp 'fkr//rg-find-all)
    (setq fkr//rg-find-all ""))
  (unless (boundp 'fkr//rg-lines-before)
    (setq fkr//rg-lines-before 0))
  (unless (boundp 'fkr//rg-lines-after)
    (setq fkr//rg-lines-after 0))
  (cond ((eql action 'after)
         (progn
           (setq fkr//rg-lines-after (funcall change fkr//rg-lines-after 1))))
        ((eql action 'before)
         (progn

           (setq fkr//rg-lines-before (funcall change fkr//rg-lines-before 1))))
        ((eql action 'find-all)
         (progn
           (setq fkr//rg-find-all (if change " --no-ignore --hidden" ""))))
        ((eql action 'reset
              (setq consult-ripgrep-args fkr//rg-reset))))
  (unless (eql action 'reset)
    (setq consult-ripgrep-args (concat fkr//rg-reset " -A" (int-to-string fkr//rg-lines-after) " -B" (int-to-string fkr//rg-lines-before) fkr//rg-find-all))))

Clojure

Some hiccup


{:data {:values  [{:power 1 :speed 2 :engine :v8}
                  {:power 3 :speed 4 :engine :v6}
                  {:power 8 :speed 7 :engine :v8}
                  {:power 4 :speed 3.5 :engine :v8}
                  {:power 5 :speed 4 :engine :v8}
                  {:power 1.2 :speed 3 :engine :v6}
                  {:power 3.2 :speed 3.8 :engine :v6}
                  {:power 7.5 :speed 7.2 :engine :v6}]}
  :mark {:type :point
         :tooltip true}
  :width 500
  :height 400
  :encoding {:x {:field :power}
             :y {:field :speed}
             :color {:field :engine}
             :size {:value 80}}}

The End:

it is not much, but it is mine.