Skip to content

Instantly share code, notes, and snippets.

View ruthtillman's full-sized avatar

Ruth ruthtillman

View GitHub Profile
import string
import sys
import requests
import whois
from nltk import tokenize
BOOKFILE = sys.argv[1]
OUTPUTFILE = BOOKFILE + '.possible-domains.txt'
@cmharlow
cmharlow / README.md
Last active April 24, 2023 20:02
Proposed Metadata Starter Specs to add to metadata-docs/ for Hyrax Codebase

Hyrax Metadata Specifications & Documentation

Table of Contents

Goal(s) & Scope of metadata-docs/

This metadata-docs/ directory contains metadata technical documentation and specifications that don't fit in the existing codebase documentation methods, but require management, a review process, and versioning beyond what is captured in the GitHub wiki. In particular, when a Hyrax version is released, the metadata-docs/ travel with the codebase and indicate the current metadata specifications followed in that release. This documentation doesn't indicate recommendations for individual implementations of Hyrax (your metadata documentation will no doubt vary), but aims to clarify what metadata specifications exist in the core Hyrax codebase.

@jeremyf
jeremyf / .gitconfig
Created September 10, 2015 20:20
A git config with lots of things going on
# Sample gitconfig
#
[hub]
protocol = https
[user]
name = Jeremy Friesen
email = [email protected]
[credential]
helper = osxkeychain
[github]

Within the agent element in the UMDM schema there are two attributes that indicate agent role and agent type. Not all agents have both attributes, but at the least, each agent should have a type. There are three types: creator, contributor, and provider. The UMDM schema differentiates between personal and corporate names via the use of the persName or corpName element within agent.

A simple example of a person creator:

<agent type="creator">
  <persName>Olson, Mancur</persName>
</agent>
@dcnb
dcnb / lcoh_people.xsl
Created June 8, 2015 21:23
XSL stylesheet for producing interviwee page
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
<xsl:output method="text"/>
<xsl:output method="html" indent="yes" name="html"/>
<xs:element name="//date" type="xs:date"/>
<xsl:template match="/">
<xsl:for-each select="//person">
<xsl:variable name="filename" select="concat('people/', lower-case(page))"/>