Skip to content

Instantly share code, notes, and snippets.

View skorotkiewicz's full-sized avatar
💻
creating meaning

Sebastian Korotkiewicz skorotkiewicz

💻
creating meaning
View GitHub Profile
@skorotkiewicz
skorotkiewicz / SKILL.md
Created October 10, 2026 06:39
curious-learner
name curious-learner
description Teach and explain to curious people of any age who want results, not tests or lectures. Use whenever someone asks "why", "how does it work", "show me", or "can I make it", or pushes back on quizzes and long explanations.

Curious Learner

Results first, no tests.

  1. Give the answer or demo first.
@skorotkiewicz
skorotkiewicz / SKILL.md
Created October 10, 2026 05:47
Young Curious Boy
name young-curious-boy
description Teach and explain to curious people of any age who want results, not tests or lectures. Use whenever someone asks "why", "how does it work", "show me", or "can I make it", or pushes back on quizzes and long explanations.

Young Curious Boy

A young curious boy wants to see things happen. He does not want to be tested, graded, or lectured. He wants results: the cool thing, the working thing, the surprising answer. Treat curiosity as the engine and results as the fuel.

Core rule: results first, explanation second

@skorotkiewicz
skorotkiewicz / tiny-llm.js
Created September 20, 2026 04:04
the smallest LLM
const text = "mama dad mama cat dad mama dog";
const words = text.split(" ");
const model = {};
for (let i = 0; i < words.length - 1; i++) {
const a = words[i];
const b = words[i + 1];
model[a] ??= [];
@skorotkiewicz
skorotkiewicz / run-simcopter.sh
Last active September 3, 2026 04:49
Run Sim Copter on Arch Linux on Wayland (Press ESC after each run, otherwise you see only black, seriously just press ESC).
#!/usr/bin/env bash
set -euo pipefail
GAME_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GAME_EXE="$GAME_DIR/SimCopter.exe"
export WINEPREFIX="$HOME/.local/share/wineprefixes/simcopter"
DXWRAPPER_VERSION="v1.7.8400.25"
DXWRAPPER_URL="https://github.com/elishacloud/dxwrapper/releases/download/${DXWRAPPER_VERSION}/dxwrapper.zip"
@skorotkiewicz
skorotkiewicz / rust_update.txt
Last active August 27, 2026 20:19
rust update log
rustc --version
rustup update stable
$ rustc --version
rustc 1.93.1 (01f6ddf75 2026-02-11)
$ rustup update stable
info: syncing channel updates for stable-x86_64-unknown-linux-gnu
info: latest update on 2026-08-20 for version 1.98.0 (88d9e12ae 2026-08-18)
info: removing previous version of component rust-std for target wasm32-wasip1
@skorotkiewicz
skorotkiewicz / hn.py
Created August 18, 2026 11:24
Fetch Hacker News threads by ID and recursively find my comments.
#!/usr/bin/env python3
import html
import json
import os
import re
import ssl
import sys
from urllib.request import Request, urlopen
@skorotkiewicz
skorotkiewicz / pragmatic-context.md
Last active August 24, 2026 03:45
Understand sarcasm, hyperbole, jokes, fictional language, and indirect intent from the whole conversation instead of interpreting isolated words literally.
name pragmatic-context
description Infers sarcasm, jokes, hyperbole, roleplay, and indirect intent from conversational context. Use when literal wording conflicts with shared history, tone, known reality, or the response a human expects.

Pragmatic context

Interpret the human's intended meaning, not an isolated sentence.

Infer intent

@skorotkiewicz
skorotkiewicz / a.js
Created July 27, 2026 02:08
PEMDAS/BODMAS
// with Shunting-Yard Algorithm
const precedence = { "+": 1, "-": 1, "*": 2, "/": 2, "u+": 3, "u-": 3, "^": 4 };
const rightAssociative = new Set(["^"]);
const binary = {
"+": (a, b) => a + b,
"-": (a, b) => a - b,
"*": (a, b) => a * b,
"/": (a, b) => a / b,
"^": (a, b) => a ** b
};
@skorotkiewicz
skorotkiewicz / HUMANS.md
Created July 23, 2026 20:54
like AGENTS.md but for humans (yes, it is a joke, or maybe not(?))

Purpose

Try to leave people and places slightly better than I found them.

Defaults

  • Ask before assuming.
  • Prefer the simple explanation.
  • Write promises down.
  • Sleep before making irreversible decisions.
#!/usr/bin/env bash
set -euo pipefail
src=${1:?Usage: $0 SOURCE_DIR}
(
cd "$src"
find . -type f ! -path './checksums.sha256' -print0 |
sort -z |
xargs -0 -r sha256sum