Skip to content

Instantly share code, notes, and snippets.

{"datasets":[{"version":"v1","data":{"id":"epy65bw2s","label":"drih places - ismi_geocoded.csv","color":[143,47,191],"allData":[["http://content.mpiwg-berlin.mpg.de/id/ismi/place/458696","Wāsiṭ","32.6944827,45.6848009",32.6944827,45.6848009],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/462175","Antakya","36.2042534,36.1640489",36.2042534,36.1640489],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/463432","Qazwīn","31.1881979,29.9124791",31.1881979,29.9124791],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/478778","Maġrib","31.1728205,-7.3362482",31.1728205,-7.3362482],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/482813","Anatolia","38.9528714,35.49971671252176",38.9528714,35.49971671],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/482817","Niksar","40.5913282,36.9434927",40.5913282,36.9434927],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/483787","Zabid","14.277424,43.368409",14.277424,43.368409],["http://content.mpiwg-berlin.mpg.de/id/ismi/place/485679","Merv","37.6604422,62.19137
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kimpham54
kimpham54 / clone_all_repos.sh
Created March 21, 2017 12:39
clone all repos in a github organization using clone_url. can use ssh_url
curl -s https://api.github.com/users/Islandora-CLAW/repos?per_page=200 | python -c $'import json, sys, os\nfor repo in json.load(sys.stdin): os.system("git clone " + repo["clone_url"])'
declare namespace mods="http://www.loc.gov/mods/v3";
declare namespace xsi="http://www.w3.org/2001/XMLSchema-instance";
declare namespace xlink="http://www.w3.org/1999/xlink";
declare namespace schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd";
declare default element namespace "http://www.loc.gov/mods/v3";
copy $xml := .
modify (
let $topic := $xml/mods/subject/topic
@kimpham54
kimpham54 / installquery.sh
Last active August 29, 2015 14:07
Install Islandora XQuery module
#Go home.
cd ~
# Get zorba
sudo add-apt-repository ppa:juan457/zorba
sudo apt-get update
sudo apt-get install zorba
# Compile xdiff PHP extension and dependencies
wget http://www.xmailserver.org/libxdiff-0.23.tar.gz
tar -xzf libxdiff-0.23.tar.gz
rm libxdiff-0.23.tar.gz
for dir in /pathto/imagefolder/*/*; do (cd "$dir" && pwd && identify *.tif); done
@kimpham54
kimpham54 / 0_reuse_code.js
Created June 24, 2014 16:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console