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
<address class="vcard" vocab="http://www.w3.org/2006/vcard/ns#" resource="http://scholarslab.org/" typeof="Organization"> | |
<span class="org fn"> | |
<a class="url organization-name" href="http://scholarslab.org/"> | |
<span property="formattedName">Scholars’ Lab</span> | |
</a> | |
<a class="organization-unit extended-address" href="http://lib.virginia.edu/" property="hasOrganizationName" resource="http://lib.virginia.edu/" typeof="Organization"> | |
<span property="formattedName">University of Virginia Library</span> | |
</a> | |
</span> | |
<span property="hasAddress" typeof="Work"> |
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
(function(window, $, undefined) { | |
var $window = $(window); | |
/** | |
* Show or hide the button depending on the scroll position. | |
*/ | |
function animateButton() { | |
var button = $('#back-to-top'); | |
var scrollPosition = $window.scrollTop(); | |
if (scrollPosition > 400) { |
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
-- Geonetwork migration | |
CREATE TABLE CustomElementSet | |
( | |
xpath varchar(1000) not null | |
); | |
-- Fix languages table | |
ALTER TABLE Languages | |
ADD COLUMN isocode varchar(3), |
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
add_item_page.form_with(:method => 'POST') do |item_form| | |
item_form['public'] = 1 | |
item_form['Elements[50][0][text]'] = line[:address] | |
# This should really be KML, but it will recognize WKT too. | |
item_form['Elements[38][0][geo]'] = line[:point] | |
item_form['Elements[38][0][zoom]'] = 10 | |
item_form['Elements[38][0][mapon]'] = 1 | |
item_form['Elements[38][0][center_lon]'] = line[:lon] | |
item_form['Elements[38][0][center_lat]'] = line[:lat] | |
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
<?php | |
/** | |
* One Creator: "Jane Doe" | |
* Two creators: "Jane Doe and John Doe" | |
* Three creators: "Jane Doe, John Doe, and Jim Doe" | |
* Four or more: "Jane Doe et al." | |
*/ | |
if ($creators) { | |
switch (count($creators) { |
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
<?php | |
/** | |
* One Creator: "Jane Doe" | |
* Two creators: "Jane Doe and John Doe" | |
* Three creators: "Jane Doe, John Doe, and Jim Doe" | |
* Four or more: "Jane Doe et al." | |
*/ | |
if ($creators) { |
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
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' |
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
#! /usr/bin/env bash | |
# install local janus config | |
curl -L https://gist.github.com/raw/1166018/bfba67168e2f2b74fa7d7debf9ed13ca798429f1/.janus.rake > ~/.janus.rake | |
# install janus plugins for vim | |
curl https://raw.github.com/carlhuda/janus/master/bootstrap.sh -o - | sh | |
# install rvm | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) |