Skip to content

Instantly share code, notes, and snippets.

Gerrit Imsieke gimsieke

Block or report user

Report or block gimsieke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View textdiff-with-options.xpl
<?xml version="1.0" encoding="utf-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:dc="http://www.delightfulcomputing.com/ns/" version="1.0" name="textdiff-with-options" type="dc:textdiff-with-options">
<p:documentation/>
<p:option name="whitespace" select="'observe'">
<p:documentation>Alternatives: ignore, normalize. Whether inline whitespace is ignored or contracted to a single space
before comparison.</p:documentation>
</p:option>
View test-param-manipulation.xpl
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0"
name="test-params">
<p:input port="params" kind="parameter" primary="true"/>
@gimsieke
gimsieke / ndw50.xpl
Last active Jun 19, 2017
a birthday serenade for Norm
View ndw50.xpl
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:ndw50="urn:ndw:birthday:50"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:cx="http://xmlcalabash.com/ns/extensions"
version="1.0"
exclude-inline-prefixes="c cx ndw50"
type="ndw50:serenade" name="serenade">
<p:output port="serenade-lines" sequence="true">
View epitei.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://subversion.le-tex.de/common/schema/tei-cssa/docbook-like-divs.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/Vault/P5/1.7.0/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title></title>
</titleStmt>
<publicationStmt></publicationStmt>
View parsed-css.xml
<?xml version="1.0" encoding="UTF-8"?>
<css xmlns="http://www.w3.org/1996/css"
xmlns:xslout="bogo"
xmlns:tr="http://transpect.io"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:css="http://www.w3.org/1996/css"
xml:base="file:/C:/cygwin/home/gerrit/XML/Prague/2016/transpect-tutorial/content/ulsp/Test/Test_2014_701/docx/Test_2014_701.xhtml">
<ruleset origin="file:///C:/cygwin/home/gerrit/XML/Prague/2016/transpect-tutorial/docx2jats-demo/a9s/common/css/overrides.css">
<raw-css>.inline-title{ margin-right: 20px; font-style: italic; color: gray; margin-left: 0; }</raw-css>
<selector raw-selector=".inline-title" priority="0,0,1,0" position="1">*[matches(@class,'(^|\s)inline-title(\s|$)')]</selector>
View rng-errors-with-xpaths.xml
<?xml version="1.0"?>
<!-- Sample output for the patched jing of https://github.com/transpect/rng-extension/
Invocation (using an example in http://transpect.github.io/tutorial.html):
calabash/calabash.sh -o result=rng-errors-with-xpaths.xml \
-i source=debug/hub2bits/20.clean-up.xml
-i schema=schema/jats/archiving/1.0/rng/JATS-archivearticle1.rng
calabash/extensions/transpect/rng-extension/xpl/rng-validate.xpl
In order to use it, either check out that project or, if you only need Calabash with
the patched jing:
git clone https://github.com/transpect/calabash-frontend.git --recursive
View paths.xml
<?xml version="1.0" encoding="UTF-8"?>
<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step">
<c:param name="_params-from-filename-parsing"
value="base=CSMI_2014_701 ext=docx journal=CSMI ms=CSMI_2014_701 publisher=ulsp"/>
<c:param name="_params-given"
value="base=CSMI_2014_701 ext=docx journal=CSMI ms=CSMI_2014_701 publisher=ulsp"/>
<c:param name="_params-given-in-clades-string" value=""/>
<c:param name="basename" value="CSMI_2014_701"/>
<c:param name="debug" value="'no'"/>
<c:param name="debug-dir-uri" value="debug"/>
View http-request.xpl
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
<p:documentation>Checks the availability of a resource given in the href option.
URL that works (HTTP status 200): http://www.le-tex.de/
URL that is unavailable (404): http://www.le-tex.de/foo
View libertinus-test-equations.tex
\documentclass{scrbook}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage[ngerman]{babel}
\begin{document}
\begin{align*}
\left (x+\alpha \right )^{n}&=\sum _{k=0}^{n} \binom{n}{k} x^{k}\alpha ^{n-k} \\
View bringbackthestars.css
@charset "UTF-8";
/* Inspired by Robert McNees’ original tweet, https://twitter.com/mcnees/status/661579110926282752 */
/* Works with the Stylish add-on, https://userstyles.org/help/stylish */
@-moz-document domain(twitter.com) {
.HeartAnimationContainer {
visibility: hidden
}
.HeartAnimationContainer:after, .Icon--heartBadge:before {
content:'';
font-size: 140%;
You can’t perform that action at this time.