Skip to content

Instantly share code, notes, and snippets.

View arockwell's full-sized avatar

Alex Rockwell arockwell

View GitHub Profile
set nocompatible
:colorscheme koehler
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
set ruler
set history=1000
runtime macros/matchit.vim
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.util.List;
import javax.persistence.PersistenceException;
import junit.framework.TestCase;
import org.apache.log4j.Logger;
package edu.ufl.housing.contract.actions;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
package edu.ufl.housing.checkin;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.portals.bridges.struts.PortletTilesRequestProcessor;
package template;
import java.util.ArrayList;
import java.util.List;
public class InsertStatementGenerator implements DelimitedStringParser {
private int lineCounter = 0;
private String tableName = "";
private List<String> columns = new ArrayList<String>();
#!/usr/bin/ruby
require 'rubygems'
require 'rdf/raptor'
# Hash table of the name => uri of all data properties for a person
person_data_properties = {
"Gatorlink Username" => "http://vivo.ufl.edu/ontology/vivo-ufl/gatorlink",
"prefixName" => "http://purl.org/ontology/bibo/prefixName",
"firstName" => "http://xmlns.com/foaf/0.1/firstName",
#!/usr/bin/ruby
require 'rubygems'
require 'rdf/raptor'
mconlon_uri = "http://vivo.ufl.edu/individual/n25562/n25562.rdf"
work_email_pred = RDF::URI.new("http://vivoweb.org/ontology/core#workEmail")
# Retrieve Mike's rdf
mconlon_graph = RDF::Graph.load(mconlon_uri)
#!/usr/bin/ruby
require 'rubygems'
require 'mechanize'
require 'digest/md5'
# change these to make it work
username = 'test'
password = 'test'
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2010-06-29_03:2010-02-06,2010-06-29,2010-06-30 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1005130000 definitions=main-1006300100
X-Spam-Level: *
X-UFL-Spam-Level: *
X-Barracuda-Connect: smtp01.osg.ufl.edu[128.227.74.149]
X-Barracuda-Start-Time: 1277919963
X-Barracuda-Virus-Scanned: by UF Exchange Barracuda 1 at mail.ufl.edu
X-ASG-Quarantine: INTENT (dreamhosters.com)
X-Barracuda-Envelope-From: [email protected]
X-Barracuda-Quarantine-Per-User: PER_USER
arockwell@hippo:/usr/share/vivoingest$ sudo ./scripts/run.sh
2010-08-03 10:42:25,019 INFO [PubmedSOAPFetch] Fetch: Start
2010-08-03 10:42:25,284 ERROR [ScriptModule] AxisConfiguration getRepository returns null, cannot deploy scripts
2010-08-03 10:42:27,741 INFO [PubmedSOAPFetch] Fetch: End
2010-08-03 10:42:28,438 INFO [XSLTranslator] Translation: Start
2010-08-03 10:42:36,219 INFO [XSLTranslator] Translation: End
2010-08-03 10:42:36,604 INFO [Score] Scoring: Start
2010-08-03 10:42:36,624 INFO [Score] Loading configuration and models
2010-08-03 10:42:49,352 INFO [Score] Executing exactMatch for workEmail
2010-08-03 10:42:49,553 INFO [Score] Looping thru matching workEmail from input