This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open3' | |
require 'open-uri' | |
require 'rubygems' | |
require 'nokogiri' | |
def read_results(query, max_results = 2) | |
results = open "http://search.lib.virginia.edu/catalog?q=#{URI.escape(query)}&per_page=#{max_results}" | |
Open3.popen3('say -v Vicki') do |stdin, stdout, stderr| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open3' | |
require 'open-uri' | |
require 'rubygems' | |
require 'nokogiri' | |
# The program takes an intital keyword or phrase and performs a | |
# search against a Blacklight-based OPAC, reading the results | |
# back using the built in voice commands in OS X. | |
# | |
# Author:: Wayne Graham (based on code written by Matt Mitchell) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Removes inline width and height attributes for images. Thanks to | |
* @boonebgorges for help with this! | |
**/ | |
function clioweb_remove_inline_sizes($html) { | |
$pattern = '/(\sheight|\swidth)="(.*?)"/'; | |
$html = preg_replace($pattern, '', $html); | |
return $html; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
rvm install ruby-1.8.7 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
RUBY_VERSION=1.8.7 | |
RAILS_VERSION=2.3.10 | |
# This script will help install RVM, ruby, and rails | |
# Install ruby through rvm system to the local user | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Install pik for managing ruby on Windows | |
;PIK_VERSION=0.2.8 | |
;RUBY_VERSION=1.8.7 | |
;RAILS_VERSION=2.3.10 | |
msiexec /i http://github.com/downloads/vertiginous/pik/pik-0.2.8.msi | |
pik install ruby-1.8.7 | |
gem install rails -v 2.3.10 --no-ri --no-rdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
cd / | |
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TEI.2> | |
<name type="john cotton">To John Cotton</name> | |
DI/AAS | |
<date value="1692-08-05">August 5, 1692</date> | |
<salute>Reverend Sir,</salute> | |
<p> | |
Our good God is working of miracles. Five witches were lately executed, impudently demanding of God a miraculous vindication of their innocency. Immediately upon this, our God miraculously sent in five Andover witches, who made a most ample, surprising, amazing confession of all their villainies, and declared the five newly executed to have been of their company, discovering many more, but all agreeing in Burroughs being their ringleader, who, I suppose, this day receives his trial at Salem, whither a vast concourse of people is gone, my father this morning among the rest. Since those, there have come in other confessors; yea, they come in daily. About this prodigious matter my soul has been refreshed with some little short of miraculous answers of prayer, which are not to be written; but they comfort me with a prospect of a hopeful issue. | |
</p> | |
<p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>LETTER FROM REV. JOHN HIGGINSON TO HIS SON NATHANIEL HIGGINSON,</p> | |
<p>AUGUST 31, 1698.</p> | |
<p>Salem, August the 31st 1698.</p> | |
<p>My Beloved Son</p> | |
<p>Although my Self & yr Brothr Jno. have written to you Several times |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<StyledLayerDescriptor version="1.0.20" | |
xmlns="http://www.opengis.net/sld" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ogc="http://www.opengis.net/ogc" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.20/StyledLayerDescriptor.xsd"> | |
<NamedLayer> | |
<Name></Name> |