Skip to content

Instantly share code, notes, and snippets.

@grf
grf / gist:9f2a0abbb69320a205cc
Created January 21, 2015 18:00
METS file that illustrates how mets.rb makes the selection of the wrong structmap, in this case a PDF.
<METS:mets LABEL="Fire Careers, Adventures For Your Life!" OBJID="FI06050102" xmlns:METS="http://www.loc.gov/METS/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/version14/mets.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/simpledc20021212.xsd http://www.loc.gov/mods/v3 http://www.loc.orv/standards/mods/v3/mods-3-0.xsd" TYPE="book">
<METS:metsHdr CREATEDATE="2010-03-15T13:03:48-04:00">
<METS:agent OTHERROLE="METS Maker" OTHERTYPE="SOFTWARE" ROLE="OTHER" TYPE="OTHER">
<METS:name>DigiTool METS Maker</METS:name>
</METS:agent>
</METS:metsHdr>
<METS:dmdSec ID="DMD1">
<METS:mdWrap MDTYPE="MARC" MIMETYPE="text/xml">
@grf
grf / DiGram.java
Created November 11, 2011 04:20
Digram (word pair) counter for Cloud Computing and Storage Program 2
// G R Fischer for Fall 2011 Cloud Computing and Storage
// DiGram - Programming assignment 2, part 2 of 2
// 2011-11-10
package org.myorg;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
@grf
grf / WordCount.java
Created November 11, 2011 04:13
Simple word counter for Cloud Computing and Storage Program 2
// G R Fischer for Fall 2011 Cloud Computing and Storage
// WordCount - Programming assignment 2, part 1 of 2
// 2011-11-10
// Derived from many different example WordCount programs.
package org.myorg;
import java.io.IOException;
import java.util.*;
@grf
grf / textpair.java
Created September 21, 2011 03:20
p1b
package net.sacred;
import java.io.*;
import org.apache.hadoop.io.*;
// Create a pair of Text objects that we can emit from a map function.
// From example 4.7 in Hadoop, The Definitive Guide. O'Reilly 2010
public class TextPair implements WritableComparable<TextPair> {
private Text first;
@grf
grf / digram.java
Created September 21, 2011 03:18
p1b
// G R Fischer for Fall 2011 Cloud Computing and Storage
// DiGram - Programming assignment 1, part 2 of 3
// 2011-09-20
package net.sacred;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
@grf
grf / p1a.java
Created September 21, 2011 03:17
p1a
// G R Fischer for Fall 2011 Cloud Computing and Storage
// WordCount - Programming assignment 1, part 1 of 3
// 2011-09-20
// Derived from many different example WordCount programs.
package org.myorg;
import java.io.IOException;
import java.util.*;
@grf
grf / gist.el
Created February 26, 2010 23:04
(defun github-auth-info ()
"Returns the user's GitHub authorization information.
Searches for a GitHub username and token in the global git config,
and returns (USERNAME . TOKEN). If nothing is found, prompts
for the info then sets it to the git config."
= Usage
xmpfilter, rct-complete and rct-doc take its input from stdin and write to
stdout. They can run in several modes; see
xmpfilter -h
rct-complete -h
rct-doc -h
rct-meth-args -h
rct-fork -h
rct-fork-client -h
ruby-toggle-file -h