Skip to content

Instantly share code, notes, and snippets.

View benwbrum's full-sized avatar

Ben W. Brumfield benwbrum

View GitHub Profile
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://fromthepage.ace.fordham.edu/iiif/111/manifest",
"@type": "sc:Manifest",
"label": "Livre au roi, rubrics and text - BSB Cod.gall. 51",
"metadata": [
{
"label": "dc:source",
"value": "https://gist.githubusercontent.com/LauraMorreale/20fca173b9254e19c46ad9236061ef6a/raw/96cc53e109e65cf9ef9fa3165108433a59da5a4d/gistfile1.txt"
}
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://fromthepage.ace.fordham.edu/iiif/112/manifest",
"@type": "sc:Manifest",
"label": "Français 19026 Livre au Roi",
"metadata": [
{
"label": "dc:source",
"value": "https://gist.githubusercontent.com/LauraMorreale/8719fe382db0d14e165fddbb96bf5758/raw/fbae1dfbfb36a0394fa4a03ebc966f2a5a782b8c/BNFLivreauroimanifest.json"
}
[17] pry(#<SearchRecord>)> self.transcript_names
=> [{"role"=>"ba",
"type"=>"primary",
"first_name"=>"Kathrine",
"last_name"=>"JOCK"},
{"role"=>"f", "type"=>"other", "first_name"=>"Hugh", "last_name"=>"JOCK"},
{"role"=>"m",
"type"=>"other",
"first_name"=>"Cirsten",
"last_name"=>"? CHRISTIAN"}]
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://example.edu/iiif/collections",
"@type": "sc:Collection",
"label": "DSpace Communities at Example.edu",
"related": {
"@id": "https://repositories.tdl.org/tamug-ir/",
"format": "text/html"
},
"collections": [
@benwbrum
benwbrum / catholic_registers_ocr.txt
Created November 22, 2016 20:13
Page 360 of Catholic Record Society Miccelenea 14
360 REV. Moxox hervey's registers, 1729-56
Galva, by Powis Castle, was baptized by M H, by the Name
Ann : the Godfather was John Meredith, & the Godmother was
M^^* Catharine Williams, Widow, both of Welch Pool. (4)
(106^) Anno 174S
131. On the 26^^ of January 1748. At Powis Castle, the Son of
John & Grace Meredith of Welch Pool, was baptizd by M H, by
the Name of John : the Godfather was John Meredith, Senior of
@benwbrum
benwbrum / freeukgen_interview.rb
Created September 27, 2016 15:06
Coding challenge/interview prompt for Free UK Genealogy developer
# Create a Person class which will print the following output when run:
# Jane Doe
# John Smith
# YOUR CODE GOES HERE
p1 = Person.new
p1.first_name = 'Jane'
p1.last_name = 'Doe'
p1.print_name
@benwbrum
benwbrum / freeXXX2.js
Created May 25, 2016 16:28
Examples of the FreeXXX2 data model
// here is a specific record which will be returned for FreeCEN 2 searches
//
// irb(main):005:0> print JSON.pretty_unparse(JSON.parse(SearchRecord.last.to_json))
{
"_id": "5729f15fe93790843021d1c6",
"annotation_ids": null,
"asset_id": null,
"chapman_code": "ABD",
"freecen_individual_id": "5729f15de93790843021cfdb",
"freereg1_csv_entry_id": null,
cat second.tex
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\begin{document}
\thispagestyle{empty}
$\mathfrak{H}$ello world!
\end{document}
pdflatex second.tex
pdfcrop --clip second.pdf second_crop.pdf
@benwbrum
benwbrum / search_statistic_distribution.rb
Created October 27, 2015 21:16
Distribution of search statistics showing that statistics are being calculated
irb(main):012:0> 0.upto(24).each { |i| p SearchStatistic.where(:year => 2015, :day => 24, :month => 10, :hour => i).count }
5
5
5
5
5
5
5
6
5
@benwbrum
benwbrum / production_rails_with_bad_assets.log
Created September 11, 2015 03:32
Log of bad production stuff
Started GET "/" for 144.76.154.40 at 2015-09-11 04:31:48 +0100
Processing by SearchQueriesController#new as HTML
Rendered search_queries/_form_freecen.html.erb (3.4ms)
Rendered search_queries/new.html.erb within layouts/application (3.6ms)
Rendered layouts/_main_nav.html.erb (0.5ms)