Skip to content

Instantly share code, notes, and snippets.

@langsdlc
langsdlc / entities-ead.xqy
Last active August 18, 2017 16:10 — forked from CliffordAnderson/entities-ead.xqy
Entity Extraction with Rosette
xquery version "3.1";
declare namespace ead = "urn:isbn:1-931666-22-9";
declare namespace http = "http://expath.org/ns/http-client";
let $texts := fn:doc("https://raw.githubusercontent.com/HeardLibrary/finding-aids/master/rosenzweig.xml")//ead:item/text()
for $text in $texts
let $json := map {
"content" : fn:normalize-space($text),
"genre" : "social-media"
@langsdlc
langsdlc / file-to-http.bash
Created December 22, 2015 15:31 — forked from CliffordAnderson/directions.md
Bash / JQ for Cloudant Bulk Upload & Download
http post #####:#####@vulibrarygis.cloudant.com/campustour/_bulk_docs < tour.json

##Instructions for finding a youtube video for your map

  • Find a video of Berlin in youTube or any other source with a Creative Commons license. For example, St. Nicholas' Church, Berlin, Germany by Igor Skoglund.

  • Click Share. CLick Embed. Copy the embedded url: <iframe width="420" height="315" src="https://www.youtube.com/embed/uKlPfgi8xHw" frameborder="0" allowfullscreen></iframe>

  • Edit the link width to 180 and delete the height variable. You will also want to delete the 's' from 'https:' and add a double quote around your code. Make sure al of your code matches the following format with slashes as well. For example : "<iframe width=\"180\" src=\"http://www.youtube.com/embed/uKlPfgi8xHw\" frameborder=\"0\" allowfullscreen><\/iframe>"

  • Find the Latitude and Longitude of the video you want to use with [Google Maps](https://www.google.com/maps/place/St+Nicholas'+Church,+10178+Berl

@langsdlc
langsdlc / roosevelt
Last active August 29, 2015 14:07 — forked from stardustnrust/roosevelt
= Roosevelt Family Geneology
== Modeling the Graph
//graph
=== OUR DATASET
[source, cypher]

The Life You Save May Be Your Own

Modeling the Graph

OUR DATASET