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/python | |
# 1. Save this file to your local machine where you want to save the files | |
# 2. Change 'manuscript' to the one you want | |
# 3. Change 'lastItem' to the last numbered item of the text section of the manuscript | |
# 4. Add a directory 'jpgs' that the images will be stored in | |
# 5. Run "python PennInHand_grabber.py" | |
import sys | |
import urllib |
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
#!/usr/bin/env ruby | |
require 'pty' | |
require 'expect' | |
$rar_divider = "-------------------------------------------------------------------------------\n" | |
def check_rar_contents(file) | |
$stderr.puts "Checking RAR contents for: #{file}" | |
rar_contents = `unrar l -v "#{file}" 2>&1`.split($rar_divider) |
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
diff --git classify/trainingsampleset.cpp classify/trainingsampleset.cpp | |
index afbf3f4..6121395 100644 | |
--- classify/trainingsampleset.cpp | |
+++ classify/trainingsampleset.cpp | |
@@ -693,6 +693,8 @@ void TrainingSampleSet::ComputeCanonicalSamples(const IntFeatureMap& map, | |
fcinfo.canonical_sample = fcinfo.samples[0]; | |
fcinfo.canonical_dist = 0.0f; | |
for (int i = 0; i < fcinfo.samples.size(); ++i) { | |
+ #pragma omp parallel | |
+ { |
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
# Endpoint http://vocab.getty.edu/sparql | |
select ?t ?name (count(*) as ?c) { | |
?x gvp:placeType ?t. ?t gvp:prefLabelGVP/xl:literalForm ?name | |
} group by ?t ?name | |
# 0. Inspired by https://twitter.com/paregorios/status/568513448130187264 | |
# 1. This includes place types AND cultures/styles (eg "religious center" and "Maya") | |
# 2. Exploring the AAT hierarchy above these types could also be interesting | |
# 3. We also provide TGN counts as per Mar 2015 | |
# 4. The query is a bit expensive (1.2M places, 2.7M type instances), so be nice and use the attached TSV |
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
Arthur/P.Sijp.,_44 | |
Bart/O.Heid.,_210 | |
Paola/O.Heid._154 | |
adelattr/P.Brux.Bawit_12 | |
approved/2010/04/30/SB_24_15977 | |
approved/2010/05/14/P.Brux._Bawit,_1 | |
approved/2010/06/16/CPL,_310 | |
approved/2010/06/16/O.Ber._2,_130 | |
approved/2010/06/16/P.Brux._Bawit,_9 | |
approved/2010/07/08/O.Heid.,_330 |
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
Loaded suite /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
.....................................EEEE.F............... | |
Finished in 96.705 seconds. | |
1) Error: | |
test: a publication copied to another owner should be a child of its parent. (PublicationTest): | |
NoMethodError: You have a nil object when you didn't expect it! | |
You might have expected an instance of ActiveRecord::Base. | |
The error occurred while evaluating nil.destroy |
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
$jruby -S rake --trace | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | |
(in /data/papyri.info/sosol/editor) | |
** Invoke default (first_time) | |
** Invoke test (first_time) | |
** Execute test | |
** Invoke test:units (first_time) | |
** Invoke db:test:prepare (first_time) | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment (first_time) |
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
<div xml:lang="grc" type="edition" xml:space="preserve"> | |
<ab> | |
<lb n="1"/><gap reason="lost" atLeast="10" atMost="15" unit="line"/> | |
<lb n="1"/><gap reason="lost" quantity="5" unit="character"/> <supplied reason="lost">ὑπομνησ</supplied>τικὸν τῶν συνθε<gap reason="illegible" quantity="1" unit="character"/><gap reason="lost" quantity="12" unit="character" precision="low"/> <supplied reason="lost">π</supplied><unclear>ε</unclear>ρὶ χ<unclear>ρ</unclear><supplied reason="lost">έ</supplied>ους καὶ | |
<lb n="2"/><gap reason="lost" quantity="13" unit="character" precision="low"/><unclear>ε</unclear>ντων μ<unclear>ε</unclear><gap reason="illegible" quantity="1" unit="character"/><unclear>ε</unclear><gap reason="lost" quantity="2" unit="character"/><gap reason="illegible" quantity="2" unit="character"/><gap reason="lost" quantity="30" unit="character" precision="low"/> | |
<lb n="3"/><gap reason="lost" quantity="15" unit="character" precision="low"/>ων. ἐπείπερ π<gap reason="illegible" quantity="1" unit="character"/><gap reas |
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
# major versions only | |
prever=""; for ver in `git tag | grep -v rc | gsort -V -r`; do if [ "$prever" != "" ]; then echo $prever; git rev-list --pretty=oneline --abbrev-commit --no-merges $prever ^$ver; echo ""; fi; prever=$ver; done | less | |
# RC's only | |
prever=""; for ver in `git tag | grep rc | gsort -V -r`; do if [ "$prever" != "" ]; then echo $prever; git rev-list --pretty=oneline --abbrev-commit --no-merges $prever ^$ver; echo ""; fi; prever=$ver; done | less |
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
13928: | |
ready | |
ready | |
rake aborted! | |
An error has occurred, all later migrations canceled: | |
private method `gsub' called for nil:NilClass | |
/usr/local/rvm/rubies/jruby-1.6.2/lib/ruby/1.8/cgi.rb:342:in `escape' | |
./db/migrate//20110811204557_escape_comments.rb:5:in `up' | |
org/jruby/RubyArray.java:1602:in `each' |
OlderNewer