Skip to content

Instantly share code, notes, and snippets.

View anarchivist's full-sized avatar
🫏

maría a. matienzo anarchivist

🫏
View GitHub Profile
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://purl.stanford.edu/xt162pg0437/iiif/manifest",
"@type": "sc:Manifest",
"label": "Annual report of the Council of the Corporation of Foreign Bondholders. 1988",
"attribution": "Copyright © Stanford University. All Rights Reserved.",
"logo": {
"@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette/full/400,/0/default.jpg",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
This file has been truncated, but you can view the full file.
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://example.com/iiifcollection.json",
"@type": "sc:Collection",
"label": "Stanford historical photograph collection, 1887-circa 1996 (inclusive)",
"description": "The Stanford historical photograph collection, containing over 16,000 images. Series 1, General Photographs, documents the campus and campus life; subjects include athletics, original construction of the campus, individual buildings, students and student life activities, commencement activities, academic departments, and damage from the 1906 earthquake. Series 2, Stanford Family, contains photographs of family members and friends, Stanford residences, the Palo Alto Stock Farm, and the Central Pacific Railroad. Series 3, Biographical Photographs, contains images of faculty and administrative staff. Series 4 contains oversized images and Series 5 contains copy negatives. The majority of photographs are black and white gelatin prints but nineteenth-century albumen pri
@anarchivist
anarchivist / manifests_by_host.sparql
Created December 10, 2018 15:42
Match Wikidata items with IIIF manifests by host or domainname
# Match Wikidata items with IIIF manifests by domain name
SELECT ?item ?itemLabel ?manifest
WHERE
{
?item wdt:P6108 ?manifest .
FILTER regex (STR(?manifest), "wdl.org").
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Due to recent abusive intrusions into our channel, we may need to temporarily restrict participation to users who have registered accounts on Freenode. If you have received a Cannot send to channel message when attempting to talk, you can validate that you are not a malicious user and regain the ability to send messages to the channel by registering your account. Please see the link below for instructions, and don't hesitate to stop by #freenode to ask for help.

https://freenode.net/kb/answer/registration#nickname-setup

If you notice abusive activity in the channel, please notify one or more of our channel operators via private message. These people are: anarchivist, rsinger, and yo_bj.

@anarchivist
anarchivist / strip-oac-attribs.xslt
Last active June 15, 2018 17:34
Strip OAC attributes from EAD
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output indent="yes"/><xsl:param name="removeAttributesNamed" select="'|C-ORDER|MAX-C-ORDER|score|cdlpath:parent|cdlpath:grandparent|xmlns:cdlpath|'"/><xsl:template match="node()|@*" name="identity"><xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy></xsl:template><xsl:template match="@*"><xsl:if test= "not(contains($removeAttributesNamed, concat('|', name(), '|') ) ) "><xsl:call-template name="identity"/></xsl:if></xsl:template></xsl:stylesheet>
@anarchivist
anarchivist / stanford_arts.geojson
Created January 17, 2018 18:36
Stanford Arts Map as GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anarchivist
anarchivist / beehive.conf
Last active January 8, 2018 07:51
Beehive configuration for causing successful, production Netlify deploy events to fire off an update to a PuSH hub
{
"Bees": [
{
"Name": "Superfeedr",
"Class": "httpbee",
"Description": "Superfeeder PuSH endpoint",
"Options": []
},
{
"Name": "Netlify",
tsukemono:matienzo.org mark$ webmention http://matienzo.org/2018/004/quake/
Finding links on http://matienzo.org/2018/004/quake/
Found 7 links:
http://matienzo.org
https://earthquake.usgs.gov/earthquakes/eventpage/nc72948801
https://chaos.social/@anarchivist/99294237499617350
https://twitter.com/anarchivist/status/949065781597298688
https://news.indieweb.org/en
http://matienzo.org/2018/004/quake/
http://microformats.org/wiki/h-event
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://purl.stanford.edu/ff447jh7479/iiif/manifest",
"@type": "sc:Manifest",
"label": "Kitāb al-tashrīḥ al-ʻāmm",
"attribution": "Copyright © Stanford University. All Rights Reserved.",
"logo": {
"@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette/full/400,/0/default.jpg",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://purl.stanford.edu/ff447jh7479/iiif/manifest",
"@type": "sc:Manifest",
"label": "Kitāb al-tashrīḥ al-ʻāmm",
"attribution": "Copyright © Stanford University. All Rights Reserved.",
"logo": {
"@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette/full/400,/0/default.jpg",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",