This file contains hidden or 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
Library Electronic Resources Specialist | |
Raritan Valley Community College | |
Branchburg Township, New Jersey | |
ColdFusion, EZproxy, JavaScript, Personal computer hardware | |
http://jobs.code4lib.org/job/13115 | |
Digital Scholarship Specialist | |
University of Oklahoma | |
Norman, Oklahoma | |
Digital humanities, University of Oklahoma |
This file contains hidden or 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
input[type="file"]::-webkit-file-upload-button { | |
-webkit-appearance: button; | |
padding:7px; | |
font-size: smaller; | |
} |
This file contains hidden or 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
for f in *.dat ; do echo "Processing $f" ; yaz-marcdump -f MARC-8 -t UTF-8 -o marc -l 9=97 $f > ../loc_utf8_records/$f ; cd ../loc_utf8_records ; gzip $f ; cd ../loc_records ; done |
This file contains hidden or 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
class Foo | |
def method_missing(method_name, *args) | |
# method_name is a symbol | |
if method_name.to_s =~ /^find_by_/ | |
self.find_by_magic_method(method_name, args) | |
elsif method_name.to_s =~ /^other_dynamic_method_/ | |
self.do_other_dynamic_method(method_name, args) | |
end | |
# If we get here, we'll get a NoMethodError | |
end |
This file contains hidden or 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
<record xmlns="http://www.loc.gov/MARC21/slim"> | |
<leader>00488nam a2200193 4500</leader> | |
<controlfield tag="001">vtls002817361</controlfield> | |
<controlfield tag="003">WlAbNL</controlfield> | |
<controlfield tag="005">20060313054800.0</controlfield> | |
<controlfield tag="008">060313 || | ||| d</controlfield> | |
<datafield tag="016" ind1=" " ind2=" "> | |
<subfield code="a">FREPO</subfield> | |
</datafield> | |
<datafield tag="020" ind1=" " ind2=" "> |
This file contains hidden or 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
# to get the field as a string, without the tag and indicators | |
# useful in situations where you want a legible version of the field | |
# | |
# print record['245'].value | |
def value(delim='') | |
return(@subfields.map {|s| s.value}.join(delim)) | |
end |
This file contains hidden or 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
if RUBY_VERSION < '1.9' | |
$KCODE = 'u' | |
require 'jcode' | |
end |
This file contains hidden or 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
DB.create_table :journals do | |
primary_key :id | |
string :title, :size=>1024, :index=>true | |
string :issn, :size=>8, :index=>true | |
string :e_issn, :size=>8, :index=>true | |
text :journal_url | |
text :publisher |
This file contains hidden or 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 'httparty' | |
require 'rdf' | |
require 'rdf/ntriples' | |
require 'rdf/nquads' | |
require 'json' | |
class Fuseki | |
include HTTParty | |
headers 'Accept' => 'text/plain; charset=utf-8' | |
base_uri 'http://localhost:3030/' | |
This file contains hidden or 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
class DbConnection | |
require "jruby" | |
attr_reader :conn | |
require 'jdbc/sybase-jconnect-5.5.jar' | |
@@connection = nil | |
def initialize | |
java.lang.Thread.currentThread.setContextClassLoader(JRuby.runtime.jruby_class_loader) | |
import java.sql.Statement | |
import java.sql.Connection | |
import java.sql.SQLException |
NewerOlder