View app.js
This file contains 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
/** | |
* This is the Express app.js file. | |
*/ | |
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
routes = require('./routes'), | |
underscore = require('underscore'); |
View gist:1882090
This file contains 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
vmoa = { | |
searchMainTerm: null, //the inital search term | |
searchSecondTerm: null, //the refined search term | |
searchSecondType: null, //the refined part of speach of that search term | |
searchThirdYear: null, //the year selected from the n-Gram | |
searchThirdTerm: null, //the connected term selected from the ngram page (like the top 10 word) | |
searchThirdType: null, //the part of speach of the seelcted connected word |
View gist:1882244
This file contains 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 python | |
import optparse | |
import sys | |
from lxml import etree | |
import time | |
import nltk | |
from pymongo import Connection | |
import os | |
import hashlib |
View gist:7e1ba42724f88411ed2f
This file contains 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
from pymongo import MongoClient | |
from bson.code import Code | |
import json, re | |
def query(): | |
database = "mms" | |
collection = "mods" |
View gist:4fe4bdcfd6ac6045a8e7
This file contains 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
{ | |
"collection_id": 4591, | |
"container": [ | |
{ | |
"type": "box", | |
"value": "12" | |
}, | |
{ | |
"type": "folder", | |
"value": "11" |
View gist:82cc274634f19f76b633
This file contains 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
{ | |
"container": [ | |
{ | |
"type": "box", | |
"value": "12" | |
}, | |
{ | |
"type": "folder", | |
"value": "11" | |
} |
View gist:3abee2ab1d6e32e9bd1b
This file contains 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
{ | |
"d_id": 1234, | |
"d_type": "", | |
"uuid": "", | |
"collection_name": "", | |
"collection_uuid": "", | |
"container_name": "", | |
"container_uuid": "", | |
"seq_total": 12, | |
"sib_seq": 1, |
View gist:1fd05958f5adc3a5b766
This file contains 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
{ | |
"author": "New York Public Library. Emmet Collection.", | |
"bibLevel": { | |
"code": "m", | |
"value": "MONOGRAPH" | |
}, | |
"catalogDate": "2000-11-03", | |
"country": "New York (State)", | |
"createdDate": "2008-12-16T03:52:01Z", | |
"deleted": false, |
View gist:f1ba54f598529ee47b8a
This file contains 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
{ | |
"d_id": 3015063, | |
"d_type": "Item", | |
"id": 3212468, | |
"solr_doc_hash": { | |
"collection_name": "Billy Rose Theatre Collection photograph file", | |
"collection_uuid": "2589a880-c52c-012f-2cb4-58d385a7bc34", | |
"container_name": "Lina Abarbanell", | |
"container_uuid": "29a24350-c52c-012f-73d9-58d385a7bc34", | |
"desc_md_status": "approved", |
View gist:becffc95f9765e72fd94
This file contains 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
{ | |
"viafId": "27066713", | |
"nameType": "Personal", | |
"primaryTopic": "http://viaf.org/viaf/27066713", | |
"recordLength": 5785, | |
"birthDate": "1922-03-12", | |
"deathDate": "1969-10-21", | |
"dateType": "lived", | |
"mainHeadingsData": [ | |
{ |
OlderNewer