Skip to content

Instantly share code, notes, and snippets.

View ngeraci's full-sized avatar

Noah Geraci ngeraci

View GitHub Profile
@ngeraci
ngeraci / terms_of_aggrandizement.txt
Last active March 4, 2021 01:03
term list that goes with terms_of_aggrandizement.py
influential
renowned
not(able|ed)
distinguished
reputable
prestigious
prominent
significant
respected
expert
@ngeraci
ngeraci / terms_of_aggrandizement.py
Last active March 4, 2021 01:02
Python/ArchivesSpace adaptation of Kelly Bolding's Terms of Aggrandizement xquery script to report on language in archival finding aid "Biography or History" (bioghist) notes.
""" Adaptation of Kelly Bolding's Terms of Aggrandizement xquery script to report on aggrandizing
language in archival finding aid "Biography or History" (bioghist) notes.
The original script uses xquery on a directory of EAD XML files, and produces an XML report.
This version uses Python to query the ArchivesSpace REST API, and produces a JSON report.
"""
import re
import json
from asnake.aspace import ASpace
@ngeraci
ngeraci / calisphere_compare.py
Last active January 31, 2019 23:47
A script to get a list of Nuxeo paths for missing items (and write them to a text file) when there is a discrepancy between Calisphere test and production.
""" A script to get the Nuxeo paths for missing items (and write them
to a text file) when there is a discrepancy between number of items in
Calisphere test and production.
"""
import requests
from bs4 import BeautifulSoup
from pynux import utils
@ngeraci
ngeraci / calisphere_browser_qc.py
Last active November 29, 2018 02:17
for a given collection, open a random sample of calisphere-test pages in a web browser (for qc)
"""
This script takes a collection's CDL registry number and the number of items in a collection, and
opens calisphere-test tabs in a web browser representing a specified percentage of the collection's
total pages.
"""
import argparse
import math
import random
import sys
import webbrowser as wb

Keybase proof

I hereby claim:

  • I am ngeraci on github.
  • I am ngeraci (https://keybase.io/ngeraci) on keybase.
  • I have a public key ASD_X3Xk7v5LDSx8ckV-RKSMcOQxcR10mbZWemWTNgwswwo

To claim this, I am signing this object: