Quelques liens pouvant être utile dans les échanges/discussions
Liste/ressource totalement subjective
Quelques liens pouvant être utile dans les échanges/discussions
Liste/ressource totalement subjective
import sys | |
""" | |
usage: | |
python adjacency-list-to-edges.py [adjacency-list-file] [edge-list-file] | |
example: | |
this program will help convert this: | |
[adjacency-list-file] | |
flower,fruit | |
carafe,flower,glass,window | |
flower,dew |
S = I ∪ B
P = I
O = I ∪ B ∪ L
xquery version "3.0"; | |
(: | |
Various Date String Parser | |
- Parses various flavors of date strings, returns as xs:dateTime or xs:date | |
- Key functions: dates:parseDateTime() and dates:parseDate() | |
- adapted to an eXist-compatible module from date-parser.xqy from | |
http://xqzone.marklogic.com/svn/commons/trunk/dates/date-parser.xqy | |
- by Joe Wicentowski |
xquery version "3.1"; | |
(:~ | |
: Webhook endpoint for tcadrt.com data repository, /master/ branch: | |
: XQuery endpoint to respond to Github webhook requests. Query responds only to push requests from the master branch. | |
: The EXPath Crypto library supplies the HMAC-SHA1 algorithm for matching Github secret. | |
: | |
: Secret can be stored as environmental variable. | |
: Will need to be run with administrative privileges, suggest creating a git user with privileges only to relevant app. | |
: |
def div -params 0..1 -docstring %{Wraps selected text with a tag and indents it. | |
The parameter can be omitted and then defaults to div.} %{ | |
eval -itersel %{ | |
exec <a-:><a-x>H Zo< / %sh{[ -n "$1" ] && echo "$1" || echo "div"} ><esc><a-x>yz<A-P>s/<ret>dz> | |
} | |
} | |
def select-tag -docstring %{Selects xml tag from start to end. |
PREFIX exif: <http://www.w3.org/2003/12/exif/ns#> | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
PREFIX cnt: <http://www.w3.org/2011/content#> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX sc: <http://iiif.io/api/presentation/2#> | |
PREFIX sc1: <http://www.shared-canvas.org/ns/> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX oa: <http://www.w3.org/ns/oa#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |