Skip to content

Instantly share code, notes, and snippets.

@baskaufs
baskaufs / gallery_works.csv
Created January 25, 2022 20:22
Q IDs, labels, and descriptions of Vanderbilt Fine Arts Gallery works in Wikidata
@baskaufs
baskaufs / five_letter_6of12.txt
Created January 17, 2022 00:17
2529 five-letter words from "6 of 12" list of American English words http://wordlist.aspell.net/12dicts-readme/#nof12
aback
abaft
abase
abash
abate
abbey
abbot
abeam
abhor
abide
abaca
aback
abaft
abase
abash
abate
abbey
abbot
abdal
abeam
aahed
aalii
aargh
abaca
abaci
aback
abaft
abaka
abamp
abase
@baskaufs
baskaufs / five_letter.txt
Created January 15, 2022 21:15
list of five-letter words, extracted from list of 100000 common English words
aarde
aback
abaft
abaht
abajo
abase
abate
abbia
abhor
abide
@baskaufs
baskaufs / temp_rh_rasp_pi.py
Created January 4, 2022 20:54
CircuitPython script to run temperature and RH sensor from Raspberry Pi
import time
import board
import adafruit_hts221
i2c = board.I2C() # Don't need to specify the particular board SCL and SDA, use defaults
hts = adafruit_hts221.HTS221(i2c)
# read the rel humidity and temp every second
while True:
print("RH: %.2f %%" % hts.relative_humidity)
@baskaufs
baskaufs / temp_rh_with_display.py
Created January 4, 2022 20:07
CircuitPython script to run temperature and RH sensor with 0.91 OLED display on QT Py RP2040
import time
import board
import busio # contains an interface for using hardware-driven I2C communication from your board
# board
import adafruit_hts221
# display
import displayio
import adafruit_displayio_ssd1306
@baskaufs
baskaufs / test_manifest.json
Last active December 6, 2021 04:10
test IIIF manifest
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://www.nga.gov/content/ngaweb/api/v1/iiif/presentation/manifest.json?cultObj:id=297",
"@type": "sc:Manifest",
"label": "Caney Fork Cabin",
"description": "painting by Gilbert Gaul ",
"logo": "https://www.nga.gov/etc/designs/ngaweb/images/nga-seal.png",
"attribution": "Provided by Vanderbilt University Fine Arts Gallery",
"metadata": [
{
@baskaufs
baskaufs / resource_relationship.jsonld
Created October 17, 2021 18:05
JSON-LD constructed from ResourceRelationship tabular data at https://gist.github.com/baskaufs/639d05dd485564a125feaf1b6adaac17
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dwc": "http://rs.tdwg.org/dwc/terms/",
"dcterms": "http://purl.org/dc/terms/",
"dwc:relationshipEstablishedDate": {"@type": "http://www.w3.org/2001/XMLSchema#dateTime"}
},
"@graph": [
{
"@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement",
@baskaufs
baskaufs / resource_relationship.csv
Created October 16, 2021 16:31
Tabular data for ResourceRelationship example
dwc:resourceRelationshipID dwc:relationshipEstablishedDate dwc:relationshipRemarks dwc:resourceID dwc:relationshipOfResourceID dwc:relatedResourceID dwc:relationshipAccordingTo
04b16710-b09c-11e8-96f8-529269fb1459 1963-03-08T14:07-0600 pollinator captured in the act f809b9e0-b09b-11e8-96f8-529269fb1459 http://purl.obolibrary.org/obo/RO_0002456 dc609808-b09b-11e8-96f8-529269fb1459 Julie Woodruff