Skip to content

Instantly share code, notes, and snippets.

View benwbrum's full-sized avatar

Ben W. Brumfield benwbrum

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"@context":"http://iiif.io/api/presentation/2/context.json",
"@id":"https://gist.githubusercontent.com/benwbrum/3bd622ee7358e53b233a3b7dbd36f1f8/raw/2b43b5d8aa59e053c5209de26850f0aca86b46f5/middleburycollege.json",
"@type":"sc:Collection",
"label":"IIIF Collection for middleburycollege",
"manifests":[
{
"@id":"https://iiif.archivelab.org/iiif/150SNV/manifest.json",
"@type":"sc:Manifest",
"label":"150th Anniversary of the Settlement of Newbury, Vermont"
{
"@context":"http://iiif.io/api/presentation/2/context.json",
"@id":"https://gist.githubusercontent.com/benwbrum/bba3edf8e2ffd2205e3155c3d97afa44/raw/93f152aa93234f75192c0846505cedbcb68c31fd/middlebury_historic_texts.json",
"@type":"sc:Collection",
"label":"IIIF Collection for middlebury-historic-texts",
"manifests":[
{
"@id":"https://iiif.archivelab.org/iiif/150SNV/manifest.json",
"@type":"sc:Manifest",
"label":"150th Anniversary of the Settlement of Newbury, Vermont"

Item titles that appear to have duplicate items

mysql> select value, count(*) from value where property_id=1 and resource_id in (select resource_id from value where property_id=62) group by value having count(*) > 1;
+------------------------------------------------------+----------+
| value                                                | count(*) |
+------------------------------------------------------+----------+
| 1821-09-18 Adelaide V2912 Register1 SLR13468-13675   |        2 |
| 1822-06-08 Esperança V2920 Register2 SLR14879-15025  |        2 |
| 1829-03-13 União V3017 FO315-32 f125-136             |        2 |
@benwbrum
benwbrum / KYR-0004-033-0009.xml
Created August 27, 2020 16:21
Locally-modified version of problem file.
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="KYR-0004-033-0009">
<teiHeader>
<fileDesc>
<titleStmt>
<title level="a" type="main">Provisional Government of the State of Kentucky, Journal</title>
<title level="a" type="parallel">CWG16307</title>
<respStmt>
<resp n="transcriber">Transcribed by:</resp>
<name>Matthew C Hulbert</name>
@benwbrum
benwbrum / CWGK_Tag_Coverage.md
Last active July 4, 2020 15:52
Coverage of different tags in CWG-K documents as of 2020-07-03

<!-- add line break for each <lb> -->

   <xsl:template match="tei:lb">
    <xsl:apply-templates/><br />
  </xsl:template>

Done

<!-- replace hi tags with html tags -->

<?xml version="1.0" encoding="UTF-8"?>
<ROOT
xmlns="https://www.weareavp.com/nunncenter/ohms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.weareavp.com/nunncenter/ohms/ohms.xsd">
<record id="00015380" dt="2019-12-09">
<version>5.3</version>
<date value="2013-05-29" format="yyyy-mm-dd"/>
<date_nonpreferred_format></date_nonpreferred_format>
<cms_record_id></cms_record_id>
<title>SAMPLE: Interview with Steve Zahn, May 29, 2013</title>

Ben's development machine:

 CREATE TABLE `refinery_authentication_devise_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `encrypted_password` varchar(255) NOT NULL,
  `current_sign_in_at` datetime DEFAULT NULL,
  `last_sign_in_at` datetime DEFAULT NULL,
@benwbrum
benwbrum / ut_error_log1.txt
Created October 18, 2018 21:54
latam_error_raw_logs
I, [2018-10-17T09:39:02.607974 #42383] INFO -- : TRANSCRIPTION 2018-10-17 09:39:02 -0500
TRANSCRIPTION User ID: 90 Email: [email protected] Display Name: LLILAS Benson
TRANSCRIPTION Collection ID: 23 Title:LatAm Digital Edition and Gazetteer Owner Email: [email protected]
TRANSCRIPTION Work ID: 627 Title: The geographical and historical dictionary of America and the West Indies [volume 1]
TRANSCRIPTION Page ID: 9236 Position: 473 Title:471
TRANSCRIPTION Source Text:
BEGIN_SOURCE_TEXT
C H U
C H Y
@benwbrum
benwbrum / item4_canvas.js
Last active October 18, 2018 13:56
Engel Diaries Example
{
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
"@type": "sc:Canvas",
"label": "Item 4",
"width": 968,
"height": 1673,
"images": [
{
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
SPREADSHEET COLUMN
VOCABULARY ITEM
File Name
sideload
Title
"label": "Title"
Description