This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an example single item API response, using the Image_Payload in this repo as a starting point. | |
* | |
* It merges how IIIf files and manifests are handled. | |
* | |
* It also includes simplified variations of the element names from XML. I think they align closely | |
* enough with the XML version to be recognizable without losing semantics, at least for what CERES | |
* needs. | |
* | |
* Elements below query and result are optional, unless otherwise noted (or if I don't get an HTTP 200 response, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* First passes as possible API query and response structures | |
* for various Northeastern Library DH projects | |
* | |
* | |
* | |
*/ | |
// Work / Item data | |
// /item/{id} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I've seen code for building WP blocks with JS like this | |
( function( blocks, editor, i18n, element) { | |
var el = element.createElement; | |
var __ = i18n.__; | |
var RichText = editor.RichText; | |
// do block things | |
}( | |
window.wp.blocks, | |
window.wp.editor, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Save all this to wherever (copy-paste from the Raw code should work), the open it in a browser. | |
If there are problems, I'll move it to a real GitHub repo for issue reporting. | |
(It's had minimal testing) | |
--> | |
<html> | |
<head> | |
<script type='text/javascript'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@id": "https://data.ucd.ie/api/img/manifests/ivrla:7173", | |
"rendering": { | |
"@id": "https://digital.ucd.ie/get/ivrla:7173/content", | |
"format": "application/pdf", | |
"label": "Download as PDF" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet | |
xmlns:a="http://www.loc.gov/standards/alto/ns-v2#" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0" | |
> | |
<xsl:output method="text"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="/"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.times do | |
puts "Hello World" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Description: | |
# Exports Github issues from one or more repos into CSV file formatted for import into JIRA | |
# Note: By default, all Github comments will be assigned to the JIRA admin, appended with | |
# a note indicating the Github user who added the comment (since you may not have JIRA users | |
# created for all your Github users, especially if it is a public/open-source project: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'open-uri' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="myusername" | |
PASSWORD="mypassword" | |
# Project you want to export issues from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests | |
NewerOlder