Skip to content

Instantly share code, notes, and snippets.

View learosema's full-sized avatar
👋
Hello World!

Lea Rosema learosema

👋
Hello World!
View GitHub Profile
{
Lea's alte Pascal-Unit, um den Zeichensatz im Textmode zu ändern. Es hat auch Funktionen um die Rasterfont
im BIOS auszulesen :)
}
Unit Textfont;
INTERFACE
const punkte:byte=16; {Zeichenhîhe}

Count up a version which is read from a VERSION file. The VERSION is assumed to be in the format v1.2.3

  • ./upcount-version.sh major increments the major version
  • ./upcount-version.sh minor increments the minor version
  • ./upcount-version.sh increments the patch version
@learosema
learosema / markdown.js
Last active September 21, 2024 13:37
Markdown in ~100 lines of JS
const MAGIC = [
[/^###### (.+)$/g, '<h6>$1</h6>'],
[/^##### (.+)$/g, '<h5>$1</h5>'],
[/^#### (.+)$/g, '<h4>$1</h4>'],
[/^### (.+)$/g, '<h3>$1</h3>'],
[/^## (.+)$/g, '<h2>$1</h2>'],
[/^# (.+)$/g, '<h1>$1</h1>'],
[/ $/g, '<br/>'],
[/_(.+)_/g, '<u>$1</u>'],
[/\*(.+)\*/g, '<em>$1</em>'],
@learosema
learosema / README.md
Last active September 19, 2024 21:30
smolYAML

smolYAML

smolYAML is a minimal zero-dependency yaml parser. Well, subset-of-yaml parser.

What can it parse?

Objects

name: Lea
@learosema
learosema / adlibfm.pas
Created January 17, 2025 21:04
Old Pascal Unit for Ad Lib, depends on SOUND.COM
{**************************************************************************
ADLIB
FM AdLib Sound Utilitys
Date: 4/4/91
Version: 1
***************************************************************************
@learosema
learosema / sbfmpas.pas
Last active January 17, 2025 22:59
Old pascal Unit for CMF File playback. - Relies on SBFMDRV.COM to be present
{**************************************************************************
SBFMPAS
SBFM Utilitys
Date: 4/4/91
Version: 1
***************************************************************************
@learosema
learosema / deploy.yaml
Created March 21, 2026 13:13
Deploy node.js build to github pages
# Simple workflow for deploying static content to GitHub Pages (based on the official static HTML workflow)
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: