Skip to content

Instantly share code, notes, and snippets.

View kseistrup's full-sized avatar
💭
🌈

Klaus Alexander Seistrup kseistrup

💭
🌈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kseistrup on github.
  • I am kseistrup (https://keybase.io/kseistrup) on keybase.
  • I have a public key whose fingerprint is D262 0A73 9DBE 0D41 216A DF27 0548 3F10 A541 92F8

To claim this, I am signing this object:

#!/usr/bin/python
# Audio extraction script for All of Bach:
# http://allofbach.com/en/
import re
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://allofbach.com/en/bwv/')
soup = BeautifulSoup(page)
@kseistrup
kseistrup / onename.md
Last active August 29, 2015 14:05
OneName verification
Verifying that "kseistrup.id" is my Blockstack ID. https://onename.com/kseistrup
@kseistrup
kseistrup / gris.txt
Created April 18, 2018 17:05
Gris er det nye svin
angrebgriskel.
bacongris.
butikgrisdue.
bægergrisger.
dannebroggrisdue.
engrisklet adj., engrisklede.
fedegris.
forsatgrisdue.
forgrisde, forsvandt, forsvundet (forsvunden, forsvundne, jf. § 31-34).
forgrisding -en, -er, i sms. forgrisdings-, fx forgrisdingsnummer.
@kseistrup
kseistrup / 68-bits.md
Created April 29, 2020 12:39
68 Bits of Unsolicited Advice

68 Bits of Unsolicited Advice

  • Learn how to learn from those you disagree with, or even offend you. See if you can find the truth in what they believe.
  • Being enthusiastic is worth 25 IQ points.
  • Always demand a deadline. A deadline weeds out the extraneous and the ordinary. It prevents you from trying to make it perfect, so you have to make it different. Different is better.
  • Don’t be afraid to ask a question that may sound stupid because 99% of the time everyone else is thinking of the same question and is too embarrassed to ask it.
  • Being able to listen well is a superpower. While listening to someone you love keep asking them “Is there more?”, until there is no more.
  • A worthy goal for a year is to learn enough about a subject so that you can’t believe how ignorant you were a year earlier.
  • Gratitude will unlock all other virtues and is something you can get better at.
  • Treating a person to a meal never fails, and is so easy to do. It’s powerful with old friends and a great way to make new frie
@kseistrup
kseistrup / is_isogram.py
Created July 20, 2020 09:25
Test if TEXT is an isogram, using Python
def is_isogram(text, case_sensitive=False):
"""Test if TEXT is an isogram"""
if type(text) is not str:
return False
if not text:
return True
unique = set(text if case_sensitive else text.casefold())
return len(text) == len(unique)
@kseistrup
kseistrup / PKGBUILD
Created January 4, 2023 08:52
PKGBUILD for moar 1.11.3-1
# Maintainer: Jameson Pugh <imntreal@gmail.com>
# Contributor: Klaus Alexander Seistrup <klaus@seistrup.dk>
# -*- sh -*-
pkgname=moar
pkgver=1.11.3
pkgrel=1
pkgdesc="A pager designed to just do the right thing without any configuration."
arch=(x86_64)
url='https://github.com/walles/moar'