add now and til pages
This commit is contained in:
parent
f7b6eb1643
commit
7ad81f33c3
35 changed files with 1665 additions and 57 deletions
58
bin/til.ts
Normal file
58
bin/til.ts
Normal file
|
@ -0,0 +1,58 @@
|
|||
#!/bin/env deno run
|
||||
|
||||
import { globber } from "https://deno.land/x/globber@0.1.0/mod.ts"
|
||||
|
||||
interface FileIndex {
|
||||
title: string
|
||||
source: string
|
||||
date: string
|
||||
}
|
||||
|
||||
const cwd = './til/'
|
||||
const outputPath = './til/index.md'
|
||||
|
||||
const fileIndex: FileIndex[] = []
|
||||
|
||||
const fileIter = globber({ cwd, include: ["????-??-??.md"] })
|
||||
const decoder = new TextDecoder('utf-8')
|
||||
const encoder = new TextEncoder()
|
||||
const template = `<article class="til">
|
||||
<time datetime="%DATE%">%DATE%</time>
|
||||
<div>
|
||||
<a href="/til/%DATE%.html">%TITLE%</a>
|
||||
(<a rel="nofollow noopener" class="external" href="%SOURCE%" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
`
|
||||
|
||||
function render(fi: FileIndex) {
|
||||
return template
|
||||
.replaceAll('%DATE%', fi.date)
|
||||
.replaceAll('%SOURCE%', fi.source)
|
||||
.replaceAll('%TITLE%', fi.title)
|
||||
}
|
||||
|
||||
for await (const file of fileIter) {
|
||||
if (file.isDirectory) {
|
||||
console.log('ignoring directory', file.relative)
|
||||
break
|
||||
}
|
||||
|
||||
const path = file.absolute
|
||||
const date = file.relative.slice(0, -3)
|
||||
|
||||
const raw = await Deno.readFile(path)
|
||||
const lines = decoder.decode(raw).split('\n')
|
||||
|
||||
const title = lines[0].slice(2)
|
||||
const source = lines[2].startsWith('[source](') ? lines[2].slice(9, -1) : '#'
|
||||
|
||||
fileIndex.push({ title, source, date })
|
||||
}
|
||||
|
||||
const output = fileIndex
|
||||
.sort((a, b) => a.date.localeCompare(b.date) * -1)
|
||||
.map(render)
|
||||
.join('\n')
|
||||
|
||||
Deno.writeFile(outputPath, encoder.encode(output))
|
73
dist/extended.css
vendored
73
dist/extended.css
vendored
|
@ -1,62 +1,29 @@
|
|||
#header-tilde,
|
||||
#header-bracket,
|
||||
#header-underscore {
|
||||
fill: var(--highlight-fg-color);
|
||||
}
|
||||
|
||||
#header-k,
|
||||
#header-o,
|
||||
#header-e,
|
||||
#header-h,
|
||||
#header-r {
|
||||
fill: var(--header-fg-color);
|
||||
}
|
||||
|
||||
#header-underscore {
|
||||
animation: fade 2s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes fade {
|
||||
0% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.0;
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 0.0;
|
||||
}
|
||||
|
||||
80% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
#main-menu {
|
||||
position: fixed;
|
||||
top: var(--header-height);
|
||||
width: 100vw;
|
||||
height: 1.2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
gap: 2em;
|
||||
list-style: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4rem;
|
||||
list-style: circle;
|
||||
background: var(--menu-bg-color);
|
||||
transition: top .3s ease-in-out;
|
||||
}
|
||||
|
||||
body>header:not(.small) + #main-menu {
|
||||
position: fixed;
|
||||
color: red;
|
||||
top: var(--header-height);
|
||||
height: 1.2em;
|
||||
width: 100vw;
|
||||
padding: .1em 0;
|
||||
background: black;
|
||||
#main-menu > li {
|
||||
padding: 0;
|
||||
}
|
||||
body>header.small + #main-menu {
|
||||
color: green;
|
||||
margin: 2em 0;
|
||||
top: calc(var(--header-height) * var(--header-multiplier));
|
||||
}
|
||||
pre {
|
||||
background: var(--emboss-color);
|
||||
padding: .5rem;
|
||||
}
|
||||
li.active>a {
|
||||
color: var(--highlight-fg-color);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
2
dist/index.html
vendored
2
dist/index.html
vendored
|
@ -147,7 +147,7 @@
|
|||
<link href=/extended.css rel=stylesheet>
|
||||
<script>
|
||||
const el = document.getElementById('header')
|
||||
const threshhold = 200
|
||||
const threshhold = 24
|
||||
let headerIsSmall = false
|
||||
window.addEventListener("scroll", () => {
|
||||
if (window.scrollY > threshhold && !headerIsSmall) {
|
||||
|
|
99
dist/now/index.html
vendored
Normal file
99
dist/now/index.html
vendored
Normal file
|
@ -0,0 +1,99 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>/now // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>Now -- What I'm up to right now</header>
|
||||
|
||||
<p><em>This page shows what I'm up to at the moment, following the idea of the <a href="https://sive.rs/nowff">/now page</a> introduced by <a href="https://sive.rs/">Derek Sivers</a>. You can find more now pages on <a href="https://nownownow.com/">nownownow</a>.</em></p>
|
||||
<p>Last updated: 2024-05-12</p>
|
||||
<h2>Priorities</h2>
|
||||
<blockquote>
|
||||
<p>I do a lot of things all the time and have a hard time to focus. Most of my energy right now hopefully flows into the following things:</p>
|
||||
</blockquote>
|
||||
<ul>
|
||||
<li>This homepage.</li>
|
||||
<li>Keeping up the pace professionally by taking up more management responsibilities.</li>
|
||||
<li>Fleshing out a long form D&D campaign ("Out Of The Cold Shadow").</li>
|
||||
<li>Writing down more short adventures and one-shots and publish them on <a href="https://tiskifer.dk">tiskifer.dk</a>.</li>
|
||||
<li>My wedding and honeymoon in June!</li>
|
||||
</ul>
|
||||
<h2>Book(s)</h2>
|
||||
<blockquote>
|
||||
<p>I'm not really good with taking time for reading, but when I do, I read:</p>
|
||||
</blockquote>
|
||||
<p><a href="https://openlibrary.org/works/OL2465670W/Accelerando">Accelerando</a>
|
||||
by <a href="https://openlibrary.org/authors/OL343157A/Charles_Stross">Charles Stross</a></p>
|
||||
<p><a href="https://openlibrary.org/works/OL19860807W/The_Manager%27s_Path">The Manager's Path</a>
|
||||
by <a href="https://openlibrary.org/authors/OL7564045A/Camille_Fournier">Camille Fournier</a></p>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
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 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li class="active"><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
4
dist/style.css
vendored
4
dist/style.css
vendored
|
@ -5,6 +5,7 @@
|
|||
--header-multiplier: .25;
|
||||
--page-bg-color: #232425;
|
||||
--page-fg-color: #7e9fbe;
|
||||
--menu-bg-color: #000;
|
||||
--highlight-fg-color: #eacb8b;
|
||||
--emboss-color: #000;
|
||||
}
|
||||
|
@ -21,6 +22,7 @@
|
|||
:root {
|
||||
--page-bg-color: #efe9d9;
|
||||
--page-fg-color: #261b00;
|
||||
--menu-bg-color: #fff;
|
||||
--header-fg-color: #143373;
|
||||
--header-bg-color: #a49570;
|
||||
--emboss-color: #fff;
|
||||
|
@ -208,4 +210,4 @@ blockquote {
|
|||
100% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
15
dist/til.css
vendored
Normal file
15
dist/til.css
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
main#til > header {
|
||||
margin: 0 0 2rem 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
article.til {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
article.til>div {
|
||||
line-height: 2;
|
||||
}
|
||||
article.til>time,
|
||||
article.til>div>a.external {
|
||||
color: gray;
|
||||
}
|
83
dist/til/2021-08-31.html
vendored
Normal file
83
dist/til/2021-08-31.html
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>There is a HTML tag for "Word Break Opportunity"</h1>
|
||||
<p><a href="https://www.w3schools.com/TAGS/tag_wbr.asp">source</a></p>
|
||||
<p>For example: <code>Kauf<wbr/>haus</code>.</p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5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.3-5.8 15v46.4q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
82
dist/til/2021-09-03.html
vendored
Normal file
82
dist/til/2021-09-03.html
vendored
Normal file
|
@ -0,0 +1,82 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>Bush refused offer to discuss Osama Bin Laden handover</h1>
|
||||
<p><a href="https://www.theguardian.com/world/2001/oct/14/afghanistan.terrorism5">source</a></p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3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6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
82
dist/til/2021-09-04.html
vendored
Normal file
82
dist/til/2021-09-04.html
vendored
Normal file
|
@ -0,0 +1,82 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<p><code>git fetch $repo_url $remote_branch:$new_local_branch</code></p>
|
||||
<p><a href="https://twitter.com/lucas59356/status/1433507127570669569">source</a></p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V51.6q0-5.4 3-8.6 3-3.4 8.3-3.3 2 0 3.7.6 1.8.6 3.3 1.8 1.4 1 2.2 2.7 1 1.5 1.6 3.3 11.8-8.4 27-8.4 10.6 0 21 5 11.3 5.4 17.2 14.5 2.5 3.7 2.5 7.3z" />
|
||||
<path id="header-h"
|
||||
d="M483.9 131.1q0 5.5-3.1 8.6-3 3.4-8.3 3.3-5.2 0-8.2-3.3-3.2-3.1-3.1-8.6V84.8q0-4.6-1.5-8.2-1.4-3.5-4.4-6.9-2.1-2-4.3-3.4-2.2-1.4-4.7-2-2.4-.7-5.3-.7-4.3 0-7.8 1.5-3.3 1.5-6.4 4.6-5.9 6.3-5.8 15v46.4q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.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||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
82
dist/til/2021-09-05.html
vendored
Normal file
82
dist/til/2021-09-05.html
vendored
Normal file
|
@ -0,0 +1,82 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>E-Mail that isn't spam is called ham!</h1>
|
||||
<p><a href="https://twitter.com/claranellist/status/1433539284779220997">source</a></p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5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6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
113
dist/til/2022-02-22.html
vendored
Normal file
113
dist/til/2022-02-22.html
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>Adding aliases in vite with typescript needs the same alias in tsconfig</h1>
|
||||
<p>For example:</p>
|
||||
<p>The following vite.config.ts:</p>
|
||||
<pre><code class="language-ts">import { fileURLToPath, URL } from "url"
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
"~component": fileURLToPath(new URL("./src/components", import.meta.url)),
|
||||
"~composable": fileURLToPath(new URL("./src/composables", import.meta.url)),
|
||||
"~lib": fileURLToPath(new URL("./src/lib", import.meta.url)),
|
||||
}
|
||||
}
|
||||
})
|
||||
</code></pre>
|
||||
<p>will need this in tsconfig.json:</p>
|
||||
<pre><code class="language-json">{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"~/*": [ "./src/*" ],
|
||||
"~component/*": [ "./src/components/*" ],
|
||||
"~composable/*": [ "./src/composables/*" ],
|
||||
"~lib/*": [ "./src/lib/*" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<p>The asterixes in the syntax are important (<code>alias/*</code> => <code>./path/*</code>).</p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2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-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
85
dist/til/2022-03-22.html
vendored
Normal file
85
dist/til/2022-03-22.html
vendored
Normal file
|
@ -0,0 +1,85 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>There is a file system for EFI vars now</h1>
|
||||
<p><a href="https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html">source</a></p>
|
||||
<p>On kernel updates I saw a recurring "EFI variables are not supported on this system", so I investigated and learned that the new EFI variables are provided via a file system that needs to be mounted first:</p>
|
||||
<pre><code class="language-sh">mount -t efivarfs efivarfs /sys/firmware/efi/efivars
|
||||
</code></pre>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V51.6q0-5.4 3-8.6 3-3.4 8.3-3.3 2 0 3.7.6 1.8.6 3.3 1.8 1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 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
86
dist/til/2022-03-28.html
vendored
Normal file
86
dist/til/2022-03-28.html
vendored
Normal file
|
@ -0,0 +1,86 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>pwdx command shows the working path of a process</h1>
|
||||
<p><a href="https://twitter.com/mani_maranp/status/1508476973529825281">source</a></p>
|
||||
<p>For example:</p>
|
||||
<pre><code class="language-sh">% pwdx 1984
|
||||
> 1984: /home/george/ttlctrl
|
||||
</code></pre>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.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.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
103
dist/til/2022-04-25.html
vendored
Normal file
103
dist/til/2022-04-25.html
vendored
Normal file
|
@ -0,0 +1,103 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>Jest mocks are ...different</h1>
|
||||
<p>If you want to mock an imported function in Jest in a way that allows you to check if it has been called, you can not do the seemingly straighforward:</p>
|
||||
<pre><code class="language-js">// mock prefix necessary btw
|
||||
const mockThatFunction = jest.fn(() => 'stuff')
|
||||
|
||||
jest.mock('@/path/to/module', () => ({
|
||||
thatFunction: mockThatFunction,
|
||||
}))
|
||||
|
||||
// ...in test descriptions
|
||||
expect(mockThatFunction).toHaveBeenCalled()
|
||||
</code></pre>
|
||||
<p>This way thatFunction will be undefined without anyone telling you why.</p>
|
||||
<p>What you need to do instead:</p>
|
||||
<pre><code class="language-js">import { thatFunction } from '@/path/to/module'
|
||||
|
||||
jest.mock('@/path/to/module', () => ({
|
||||
thatFunction: jest.fn(() => 'stuff'),
|
||||
}))
|
||||
|
||||
// ...in test descriptions
|
||||
expect(thatFunction).toHaveBeenCalled()
|
||||
</code></pre>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.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.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
83
dist/til/2022-06-15.html
vendored
Normal file
83
dist/til/2022-06-15.html
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>Disallowed Focussed Tests and how it saved my day</h1>
|
||||
<p>Today I was about to push a focussed test. A focussed test, you ask?</p>
|
||||
<p>In Jest (and others) one can run only a specific test, by writing <code>it.only(...</code>. Pushing this to production might create some funny or not so funny side effects though. Luckily there is the <code>no-focussed-tests</code> linter rule in <a href="https://github.com/jest-community/eslint-plugin-jest">eslint-plugin-jest</a>.</p>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-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1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
87
dist/til/2024-05-12.html
vendored
Normal file
87
dist/til/2024-05-12.html
vendored
Normal file
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<h1>Sort list of strings in Javascript</h1>
|
||||
<p><a href="https://stackoverflow.com/questions/6712034/sort-array-by-firstname-alphabetically-in-javascript">source</a></p>
|
||||
<pre><code class="language-ts">users.sort((a, b) => a.firstname.localeCompare(b.firstname))
|
||||
</code></pre>
|
||||
<p>or reversed order:</p>
|
||||
<pre><code class="language-ts">users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)
|
||||
</code></pre>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V51.6q0-5.4 3-8.6 3-3.4 8.3-3.3 2 0 3.7.6 1.8.6 3.3 1.8 1.4 1 2.2 2.7 1 1.5 1.6 3.3 11.8-8.4 27-8.4 10.6 0 21 5 11.3 5.4 17.2 14.5 2.5 3.7 2.5 7.3z" />
|
||||
<path id="header-h"
|
||||
d="M483.9 131.1q0 5.5-3.1 8.6-3 3.4-8.3 3.3-5.2 0-8.2-3.3-3.2-3.1-3.1-8.6V84.8q0-4.6-1.5-8.2-1.4-3.5-4.4-6.9-2.1-2-4.3-3.4-2.2-1.4-4.7-2-2.4-.7-5.3-.7-4.3 0-7.8 1.5-3.3 1.5-6.4 4.6-5.9 6.3-5.8 15v46.4q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 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" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
150
dist/til/index.html
vendored
Normal file
150
dist/til/index.html
vendored
Normal file
|
@ -0,0 +1,150 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="http://localhost:8080/">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="Homepage, Portfolio and CV of Norman Köhring" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2024-05-12">2024-05-12</time>
|
||||
<div>
|
||||
<a href="/til/2024-05-12.html">Sort list of strings in Javascript</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://stackoverflow.com/questions/6712034/sort-array-by-firstname-alphabetically-in-javascript" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2022-06-15">2022-06-15</time>
|
||||
<div>
|
||||
<a href="/til/2022-06-15.html">Disallowed Focussed Tests and how it saved my day</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2022-04-25">2022-04-25</time>
|
||||
<div>
|
||||
<a href="/til/2022-04-25.html">Jest mocks are ...different</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2022-03-28">2022-03-28</time>
|
||||
<div>
|
||||
<a href="/til/2022-03-28.html">pwdx command shows the working path of a process</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/mani_maranp/status/1508476973529825281" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2022-03-22">2022-03-22</time>
|
||||
<div>
|
||||
<a href="/til/2022-03-22.html">There is a file system for EFI vars now</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2022-02-22">2022-02-22</time>
|
||||
<div>
|
||||
<a href="/til/2022-02-22.html">Adding aliases in vite with typescript needs the same alias in tsconfig</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2021-09-05">2021-09-05</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-05.html">E-Mail that isn't spam is called ham!</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/claranellist/status/1433539284779220997" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2021-09-04">2021-09-04</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-04.html">it fetch $repo_url $remote_branch:$new_local_branch`</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/lucas59356/status/1433507127570669569" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2021-09-03">2021-09-03</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-03.html">Bush refused offer to discuss Osama Bin Laden handover</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.theguardian.com/world/2001/oct/14/afghanistan.terrorism5" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
<article class="til">
|
||||
<time datetime="2021-08-31">2021-08-31</time>
|
||||
<div>
|
||||
<a href="/til/2021-08-31.html">There is a HTML tag for "Word Break Opportunity"</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.w3schools.com/TAGS/tag_wbr.asp" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V51.6q0-5.4 3-8.6 3-3.4 8.3-3.3 2 0 3.7.6 1.8.6 3.3 1.8 1.4 1 2.2 2.7 1 1.5 1.6 3.3 11.8-8.4 27-8.4 10.6 0 21 5 11.3 5.4 17.2 14.5 2.5 3.7 2.5 7.3z" />
|
||||
<path id="header-h"
|
||||
d="M483.9 131.1q0 5.5-3.1 8.6-3 3.4-8.3 3.3-5.2 0-8.2-3.3-3.2-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 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
|
@ -119,7 +119,7 @@
|
|||
<link href=/extended.css rel=stylesheet>
|
||||
<script>
|
||||
const el = document.getElementById('header')
|
||||
const threshhold = 200
|
||||
const threshhold = 24
|
||||
let headerIsSmall = false
|
||||
window.addEventListener("scroll", () => {
|
||||
if (window.scrollY > threshhold && !headerIsSmall) {
|
||||
|
|
79
layouts/now/index.html
Normal file
79
layouts/now/index.html
Normal file
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="@base_url">
|
||||
<title>/now // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="@description" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>Now -- What I'm up to right now</header>
|
||||
|
||||
@contents
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-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1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.9.7 7.5 1.9t7 3q3.3 1.9 6.4 4.3 3.2 2.4 5.9 5.4 14.4 15 14.5 36.5zm-22.6 0q0-2.4-.4-4.5-.2-2.2-.9-4.2-.6-2-1.5-3.9-1-2-2.2-3.7-1.2-1.7-2.8-3.4-4-4.2-8.6-6.1-4.5-2-10-2-11 0-18.7 8.2-7.8 8-7.8 19.6 0 11.4 7.8 19.7 7.8 8 18.6 8 5.6 0 10.1-1.9 4.6-2 8.6-6.1 4-4.3 5.8-9 2-4.9 2-10.7z" />
|
||||
<path id="header-k"
|
||||
d="M186.3 131q0 4.7-3.3 8.3-1.5 1.8-3.7 2.7-2 1.1-4.3 1.1-3.5 0-6.6-2L119.2 105v26q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v65.9l49.2-36.1q3.2-2 6.6-2 4.7 0 8 3.7t3.3 8.4q-.2 6-5 9.6l-41 30 41 29.9q2.3 1.7 3.6 4.2 1.4 2.5 1.4 5.4z" />
|
||||
<path id="header-tilde"
|
||||
d="M73.1 91q0 2-.6 3.9T71 98.6q-3.2 5.7-8.9 8.5-5.6 2.8-12.9 2.8-8.8 0-18-7.8-2.4-2.3-4.5-3.7-2.1-1.5-3-1.7-1.5 0-2.1.3l-.8 1.3q-.3.7-.8 1.2l-1 1-.9.8q-2.7 2-6.4 2-1.7 0-3.2-.3-1.4-.3-3-1.1-1.5-.8-2.6-2.1-2.8-3.1-2.8-8v-1.3q0-.7.2-1.2l.2-1 .4-1 .4-1q.1-.6.5-1.1l.5-1q3.2-5.7 8.8-8.5 5.7-2.9 13-2.9 3.2 0 6.2 1 3 .9 6 2.7 2.9 1.6 5.7 4.2 5.2 4.6 7.6 5.4 1 0 1.6-.2l.7-.4q.3-.1.5-.4 3.6-5.6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li class="active"><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
81
layouts/til/index.html
Normal file
81
layouts/til/index.html
Normal file
|
@ -0,0 +1,81 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="@base_url">
|
||||
<title>Today I learned // the codeartist — programmer and engineer based in Berlin</title>
|
||||
<meta name="description" content="@description" />
|
||||
<meta content="The personal page and weblog of Norman Köhring" name=description>
|
||||
<meta content="Norman Köhring" name=author>
|
||||
<meta content="the codeartist — programmer and engineer based in Berlin" name=DC.title>
|
||||
<meta content="52.4595, 13.5335" name=ICBM>
|
||||
<meta content="52.4595; 13.5335" name=geo.position>
|
||||
<meta content=DE-BE name=geo.region>
|
||||
<meta content=Berlin name=geo.placename>
|
||||
<meta content="width=device-width,initial-scale=1.0" name=viewport>
|
||||
<link href=https://koehr.in rel=author>
|
||||
<link href=https://koehr.in rel=canonical>
|
||||
<link href=https://k0r.in rel=alternate>
|
||||
<link href=https://koehr.ing rel=me>
|
||||
<link href=@Koehr@mstdn.io rel=me>
|
||||
<link href=https://sr.ht/~koehr/ rel=me>
|
||||
<link href=https://git.k0r.in rel=me>
|
||||
<link href=https://threads.net/@coffee_n_code rel=me>
|
||||
<link href=https://instagram.com/@coffee_n_code rel=me>
|
||||
<link href=https://ko-fi.com/koehr rel=me>
|
||||
<link href=https://reddit.com/user/koehr rel=me>
|
||||
<link href=https://koehr.in/rss.xml rel=alternate title=RSS type=application/rss+xml>
|
||||
<link href=/favicon.png rel=icon type=image/x-icon>
|
||||
<link href=/style.css rel=stylesheet>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="til">
|
||||
<header>TIL -- Today I learned</header>
|
||||
|
||||
@contents
|
||||
|
||||
<a href="/til">back</a>
|
||||
</main>
|
||||
<div id="spacer"></div>
|
||||
<header id="header" class="small">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 832.4 143.1">
|
||||
<path id="header-underscore"
|
||||
d="M832.4 131.1q0 5.5-3.1 8.6-3 3.4-8.2 3.3h-75.5q-5.2 0-8.2-3.3-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8 0-5.5 3.1-8.7 1.6-1.7 3.7-2.4 2.2-.8 4.5-.8h75.5q5.2 0 8.2 3.2 3 3.1 3 8.7z" />
|
||||
<path id="header-bracket"
|
||||
d="M731.9 81.4q0 6.7-6.5 10.7l-1 .6-74.3 39.2q-2.5 1.3-5.2 1.2-4.8 0-8.1-3.8-3.2-3.6-3.2-8.4 0-3.3 1.7-6 1.8-2.9 4.6-4.4l55.3-29.1-55.3-29q-2.8-1.6-4.6-4.3-1.7-2.7-1.7-6.2 0-4.7 3.2-8.4 3.3-4 8-3.7 2.7 0 5.3 1.2l74.4 39.2q3.3 1.7 5.3 4.7 2 2.8 2 6.5z" />
|
||||
<path id="header-r"
|
||||
d="M588.7 66.5q0 5-3.5 8.5-3.5 3.4-8.1 3.5-4.4 0-8.3-4.3-10-10.7-20.9-10.6-2.2 0-4.3.3-2.1.3-4 1-1.8.6-3.7 1.6-1.7 1-3.4 2.3-1.7 1.3-3.3 2.9-7.8 8.2-7.6 19.7V131q0 5.5-3.1 8.6-3 3.4-8.3 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V51.6q0-5.4 3-8.6 3-3.4 8.3-3.3 2 0 3.7.6 1.8.6 3.3 1.8 1.4 1 2.2 2.7 1 1.5 1.6 3.3 11.8-8.4 27-8.4 10.6 0 21 5 11.3 5.4 17.2 14.5 2.5 3.7 2.5 7.3z" />
|
||||
<path id="header-h"
|
||||
d="M483.9 131.1q0 5.5-3.1 8.6-3 3.4-8.3 3.3-5.2 0-8.2-3.3-3.2-3.1-3.1-8.6V84.8q0-4.6-1.5-8.2-1.4-3.5-4.4-6.9-2.1-2-4.3-3.4-2.2-1.4-4.7-2-2.4-.7-5.3-.7-4.3 0-7.8 1.5-3.3 1.5-6.4 4.6-5.9 6.3-5.8 15v46.4q0 5.5-3 8.6-3.1 3.4-8.4 3.3l-2.2-.2q-1-.1-2.2-.5-1-.3-2-1-1-.6-1.8-1.6-1.7-1.6-2.4-3.8-.7-2.3-.7-4.8V11.9q0-5.5 3-8.6 3-3.4 8.3-3.3 5.2 0 8.2 3.3 3.2 3.1 3.2 8.6v33q1.5-1 3-1.6l3.2-1.2 3.4-1q1.6-.5 3.3-.8l3.5-.4 3.6-.2q4.4 0 8.5 1 4.1.7 7.9 2.4 3.8 1.6 7.3 4.1 3.5 2.5 6.6 5.8Q484 66 484 84.8z" />
|
||||
<path id="header-e"
|
||||
d="M387.5 111.1q0 1.2-.3 2.3-.1 1-.5 2l-.9 2q-6.6 12-19.4 19-12 6.6-25.4 6.6-20.8 0-35.8-14.6-15.9-15-15.9-37 0-22.1 15.9-37.1 15-14.6 35.8-14.6 3.9 0 7.8.7 4 .7 8 2.2 9.2 3.1 18.2 10 6 4.6 9.1 9.3 3.3 4.7 3.3 10 0 1.3-.3 2.5-.2 1.3-.7 2.4-1.5 3.4-5 5.3l-56.9 32.2q7.2 4.9 16.5 4.9 7.2 0 12.6-2.5 5.5-2.5 9.7-7.4l.7-1 .8-1 .9-1.3 1-1.5q3.3-4.2 7.4-5.1l1.8-.2q4.4 0 8 3.4 3.6 3.5 3.6 8.5zm-29.9-42.7q-7.2-4.8-16.6-4.8-6 0-11 2-4.9 1.8-9.3 6-4.5 4-6.7 9-2 4.8-2 10.8l.1 2.9z" />
|
||||
<path id="header-o"
|
||||
d="M286.8 91.4q0 4.2-.6 8.3-.6 4-1.8 7.7-1.1 3.8-2.9 7.4-1.7 3.5-4 6.9-2.4 3.3-5.2 6.1Q258 143 237.7 143T203 128q-14.3-15.2-14.3-36.6 0-21.5 14.3-36.6 14.4-15 34.7-15 4 0 7.8.5 3.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6 9.2-5.6 5.7 0 8.8 3.5 2.8 3 2.8 8z" />
|
||||
</svg>
|
||||
Homepage of
|
||||
<div class=p-name>
|
||||
<span class=first-name>Norman</span>
|
||||
<span class=last-name>Köhring</span>
|
||||
</div>
|
||||
Code Artist
|
||||
</header>
|
||||
<menu id="main-menu">
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a title="What I do these days" href="/now">/now</a></li>
|
||||
<li class="active"><a title="Today I Learned" href="/til">/til</a></li>
|
||||
<li><a title="My projects" href="/projects">/projects</a></li>
|
||||
<li><a title="Weblog" href="/blog">/blog</a></li>
|
||||
<li><a title="CV / Resume" href="/cv">/cv</a></li>
|
||||
<li><a title="Tools I use" href="/stack">/stack</a></li>
|
||||
<li><a title="Hardware I use" href="/setup">/setup</a></li>
|
||||
</menu>
|
||||
<link href=/extended.css rel=stylesheet>
|
||||
<link href=/til.css rel=stylesheet>
|
||||
<script async data-goatcounter=https://koehr.goatcounter.com/count src=//gc.zgo.at/count.js></script>
|
||||
</body>
|
24
now/index.md
Normal file
24
now/index.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
*This page shows what I'm up to at the moment, following the idea of the [/now page](https://sive.rs/nowff) introduced by [Derek Sivers](https://sive.rs/). You can find more now pages on [nownownow](https://nownownow.com/).*
|
||||
|
||||
Last updated: 2024-05-12
|
||||
|
||||
## Priorities
|
||||
|
||||
> I do a lot of things all the time and have a hard time to focus. Most of my energy right now hopefully flows into the following things:
|
||||
|
||||
* This homepage.
|
||||
* Keeping up the pace professionally by taking up more management responsibilities.
|
||||
* Fleshing out a long form D&D campaign ("Out Of The Cold Shadow").
|
||||
* Writing down more short adventures and one-shots and publish them on [tiskifer.dk](https://tiskifer.dk).
|
||||
* My wedding and honeymoon in June!
|
||||
|
||||
## Book(s)
|
||||
|
||||
> I'm not really good with taking time for reading, but when I do, I read:
|
||||
|
||||
[Accelerando](https://openlibrary.org/works/OL2465670W/Accelerando)
|
||||
by [Charles Stross](https://openlibrary.org/authors/OL343157A/Charles_Stross)
|
||||
|
||||
[The Manager's Path](https://openlibrary.org/works/OL19860807W/The_Manager%27s_Path)
|
||||
by [Camille Fournier](https://openlibrary.org/authors/OL7564045A/Camille_Fournier)
|
||||
|
29
static/extended.css
Normal file
29
static/extended.css
Normal file
|
@ -0,0 +1,29 @@
|
|||
#main-menu {
|
||||
position: fixed;
|
||||
top: var(--header-height);
|
||||
width: 100vw;
|
||||
height: 1.2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4rem;
|
||||
list-style: circle;
|
||||
background: var(--menu-bg-color);
|
||||
transition: top .3s ease-in-out;
|
||||
}
|
||||
#main-menu > li {
|
||||
padding: 0;
|
||||
}
|
||||
body>header.small + #main-menu {
|
||||
top: calc(var(--header-height) * var(--header-multiplier));
|
||||
}
|
||||
pre {
|
||||
background: var(--emboss-color);
|
||||
padding: .5rem;
|
||||
}
|
||||
li.active>a {
|
||||
color: var(--highlight-fg-color);
|
||||
font-weight: bold;
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
--header-multiplier: .25;
|
||||
--page-bg-color: #232425;
|
||||
--page-fg-color: #7e9fbe;
|
||||
--menu-bg-color: #000;
|
||||
--highlight-fg-color: #eacb8b;
|
||||
--emboss-color: #000;
|
||||
}
|
||||
|
@ -21,6 +22,7 @@
|
|||
:root {
|
||||
--page-bg-color: #efe9d9;
|
||||
--page-fg-color: #261b00;
|
||||
--menu-bg-color: #fff;
|
||||
--header-fg-color: #143373;
|
||||
--header-bg-color: #a49570;
|
||||
--emboss-color: #fff;
|
||||
|
@ -208,4 +210,4 @@ blockquote {
|
|||
100% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
15
static/til.css
Normal file
15
static/til.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
main#til > header {
|
||||
margin: 0 0 2rem 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
article.til {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
article.til>div {
|
||||
line-height: 2;
|
||||
}
|
||||
article.til>time,
|
||||
article.til>div>a.external {
|
||||
color: gray;
|
||||
}
|
5
til/2021-08-31.md
Normal file
5
til/2021-08-31.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# There is a HTML tag for "Word Break Opportunity"
|
||||
|
||||
[source](https://www.w3schools.com/TAGS/tag_wbr.asp)
|
||||
|
||||
For example: `Kauf<wbr/>haus`.
|
3
til/2021-09-03.md
Normal file
3
til/2021-09-03.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Bush refused offer to discuss Osama Bin Laden handover
|
||||
|
||||
[source](https://www.theguardian.com/world/2001/oct/14/afghanistan.terrorism5)
|
3
til/2021-09-04.md
Normal file
3
til/2021-09-04.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
`git fetch $repo_url $remote_branch:$new_local_branch`
|
||||
|
||||
[source](https://twitter.com/lucas59356/status/1433507127570669569)
|
3
til/2021-09-05.md
Normal file
3
til/2021-09-05.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# E-Mail that isn't spam is called ham!
|
||||
|
||||
[source](https://twitter.com/claranellist/status/1433539284779220997)
|
41
til/2022-02-22.md
Normal file
41
til/2022-02-22.md
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Adding aliases in vite with typescript needs the same alias in tsconfig
|
||||
|
||||
For example:
|
||||
|
||||
The following vite.config.ts:
|
||||
|
||||
```ts
|
||||
import { fileURLToPath, URL } from "url"
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
"~component": fileURLToPath(new URL("./src/components", import.meta.url)),
|
||||
"~composable": fileURLToPath(new URL("./src/composables", import.meta.url)),
|
||||
"~lib": fileURLToPath(new URL("./src/lib", import.meta.url)),
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
will need this in tsconfig.json:
|
||||
|
||||
```json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"~/*": [ "./src/*" ],
|
||||
"~component/*": [ "./src/components/*" ],
|
||||
"~composable/*": [ "./src/composables/*" ],
|
||||
"~lib/*": [ "./src/lib/*" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The asterixes in the syntax are important (`alias/*` => `./path/*`).
|
9
til/2022-03-22.md
Normal file
9
til/2022-03-22.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# There is a file system for EFI vars now
|
||||
|
||||
[source](https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html)
|
||||
|
||||
On kernel updates I saw a recurring "EFI variables are not supported on this system", so I investigated and learned that the new EFI variables are provided via a file system that needs to be mounted first:
|
||||
|
||||
```sh
|
||||
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
|
||||
```
|
10
til/2022-03-28.md
Normal file
10
til/2022-03-28.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# pwdx command shows the working path of a process
|
||||
|
||||
[source](https://twitter.com/mani_maranp/status/1508476973529825281)
|
||||
|
||||
For example:
|
||||
|
||||
```sh
|
||||
% pwdx 1984
|
||||
> 1984: /home/george/ttlctrl
|
||||
```
|
30
til/2022-04-25.md
Normal file
30
til/2022-04-25.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Jest mocks are ...different
|
||||
|
||||
If you want to mock an imported function in Jest in a way that allows you to check if it has been called, you can not do the seemingly straighforward:
|
||||
|
||||
```js
|
||||
// mock prefix necessary btw
|
||||
const mockThatFunction = jest.fn(() => 'stuff')
|
||||
|
||||
jest.mock('@/path/to/module', () => ({
|
||||
thatFunction: mockThatFunction,
|
||||
}))
|
||||
|
||||
// ...in test descriptions
|
||||
expect(mockThatFunction).toHaveBeenCalled()
|
||||
```
|
||||
|
||||
This way thatFunction will be undefined without anyone telling you why.
|
||||
|
||||
What you need to do instead:
|
||||
|
||||
```js
|
||||
import { thatFunction } from '@/path/to/module'
|
||||
|
||||
jest.mock('@/path/to/module', () => ({
|
||||
thatFunction: jest.fn(() => 'stuff'),
|
||||
}))
|
||||
|
||||
// ...in test descriptions
|
||||
expect(thatFunction).toHaveBeenCalled()
|
||||
```
|
5
til/2022-06-15.md
Normal file
5
til/2022-06-15.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Disallowed Focussed Tests and how it saved my day
|
||||
|
||||
Today I was about to push a focussed test. A focussed test, you ask?
|
||||
|
||||
In Jest (and others) one can run only a specific test, by writing `it.only(...`. Pushing this to production might create some funny or not so funny side effects though. Luckily there is the `no-focussed-tests` linter rule in [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest).
|
13
til/2024-05-12.md
Normal file
13
til/2024-05-12.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Sort list of strings in Javascript
|
||||
|
||||
[source](https://stackoverflow.com/questions/6712034/sort-array-by-firstname-alphabetically-in-javascript)
|
||||
|
||||
```ts
|
||||
users.sort((a, b) => a.firstname.localeCompare(b.firstname))
|
||||
```
|
||||
|
||||
or reversed order:
|
||||
|
||||
```ts
|
||||
users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)
|
||||
```
|
79
til/index.md
Normal file
79
til/index.md
Normal file
|
@ -0,0 +1,79 @@
|
|||
<article class="til">
|
||||
<time datetime="2024-05-12">2024-05-12</time>
|
||||
<div>
|
||||
<a href="/til/2024-05-12.html">Sort list of strings in Javascript</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://stackoverflow.com/questions/6712034/sort-array-by-firstname-alphabetically-in-javascript" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2022-06-15">2022-06-15</time>
|
||||
<div>
|
||||
<a href="/til/2022-06-15.html">Disallowed Focussed Tests and how it saved my day</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2022-04-25">2022-04-25</time>
|
||||
<div>
|
||||
<a href="/til/2022-04-25.html">Jest mocks are ...different</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2022-03-28">2022-03-28</time>
|
||||
<div>
|
||||
<a href="/til/2022-03-28.html">pwdx command shows the working path of a process</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/mani_maranp/status/1508476973529825281" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2022-03-22">2022-03-22</time>
|
||||
<div>
|
||||
<a href="/til/2022-03-22.html">There is a file system for EFI vars now</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2022-02-22">2022-02-22</time>
|
||||
<div>
|
||||
<a href="/til/2022-02-22.html">Adding aliases in vite with typescript needs the same alias in tsconfig</a>
|
||||
(<a rel="nofollow noopener" class="external" href="#" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2021-09-05">2021-09-05</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-05.html">E-Mail that isn't spam is called ham!</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/claranellist/status/1433539284779220997" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2021-09-04">2021-09-04</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-04.html">it fetch $repo_url $remote_branch:$new_local_branch`</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://twitter.com/lucas59356/status/1433507127570669569" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2021-09-03">2021-09-03</time>
|
||||
<div>
|
||||
<a href="/til/2021-09-03.html">Bush refused offer to discuss Osama Bin Laden handover</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.theguardian.com/world/2001/oct/14/afghanistan.terrorism5" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="til">
|
||||
<time datetime="2021-08-31">2021-08-31</time>
|
||||
<div>
|
||||
<a href="/til/2021-08-31.html">There is a HTML tag for "Word Break Opportunity"</a>
|
||||
(<a rel="nofollow noopener" class="external" href="https://www.w3schools.com/TAGS/tag_wbr.asp" target="_blank">source</a>)
|
||||
</div>
|
||||
</article>
|
Loading…
Reference in a new issue