Skip to content

Instantly share code, notes, and snippets.

View lueck's full-sized avatar

Christian Lück lueck

  • Bochum, Germany
View GitHub Profile
@lueck
lueck / .gitignore
Last active October 23, 2025 10:04
# DTS - Suite of Test Cases
*~
/dist
/output
__pycache__
@lueck
lueck / README.md
Last active September 25, 2025 08:53
XTriples configuration for TEI from https://gams.uni-graz.at/cantus/

XTriples für so'n Kantatenzeug

Auffällig im TEI

Falsche IDREFs

Die Werte von /TEI/text/body/div/head/@corresp sind eine samedoc-Referenz mit IDREF, aber es existieren im selben Dokument keine Fragmente mit dieser ID.

@lueck
lueck / alternobel.xsl
Created February 10, 2021 20:48
XSLT for scraping HTML, tolerant against tag soup
<?xml version="1.0" encoding="UTF-8"?>
<!--
How old were poets, when they were nobel praised?
This is an example of data aquisition from HTML using XSLT.
It make use of html2xml.xsl
USAGE:
java -jar saxon.jar -xsl:alternobel.xsl -it:start infile=https://de.wikipedia.org/wiki/Liste_der_Nobelpreistr%C3%A4ger_f%C3%BCr_Literatur
@lueck
lueck / authortitle-iinref.cbx
Created September 6, 2018 22:05
Citation style for biblatex with special handling of InReference entry types
%% Citation style for biblatex. Like authortitle-ibid, but special
%% handling for citations of type InReference. If a special keyword is
%% present in the entry's keyword list, then the citation is printed
%% as AUTHOR: TITLE, in: BOOKTITLE, [VOLUME], PAGES. This is intended
%% for publications which make extensive use of reference books the
%% articles of which should not appear in the bibliography, but only
%% the reference book.
\ProvidesFile{authortitle-iinref.cbx}
\RequireCitationStyle{authortitle-ibid}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Demo:
-- | 1) config and state (model) accessible everywhere without pushing
-- parameters around in a reflex app.
-- | 2) Pushing more than one event to 'EventWriter' and using
-- 'coincidence' to extract them.