Skip to content

Instantly share code, notes, and snippets.

View peterstadler's full-sized avatar

Peter Stadler peterstadler

View GitHub Profile
@peterstadler
peterstadler / make-tei.sh
Last active December 17, 2019 13:16
use Docker to build the TEI Guidelines locally
#!/bin/sh
# Docker image to use for building the Stylesheets and TEI Guidelines
#IMAGE=teic/jenkins:dev
IMAGE=teic/teidev-docker
# local path to the TEI Guidelines repo you cloned from https://github.com/teic/tei
TEI_PATH=/Users/pstadler/repos/TEI
# local path to the TEI Stylesheets repo you cloned from https://github.com/teic/stylesheets
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>Übersicht des Bestands der Musikabteilung der Staatsbibliothek zu Berlin in der WeGA</title>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.css"/>
<script type="text/javascript" charset="utf8" src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.js"></script>
</head>
<body>
@peterstadler
peterstadler / cmif2graphml.xqm
Last active February 10, 2022 10:25
XQuery module for extracting network information (in GraphML format) from a CMIF file
xquery version "3.1" encoding "UTF-8";
(:~
: XQuery module for extracting network information (in GraphML format) from a CMIF file
:
: CMIF is the Correspondence Metadata Interchange format,
: see https://correspsearch.net/en/documentation.html
: GraphML is an XML-based file format for graphs,
: see http://graphml.graphdrawing.org
: