Skip to content

Instantly share code, notes, and snippets.

{
"taxonConcepts": [
{
"sourceIdentfier": "6205",
"nameAccordingTo": "NCBI Taxonomy",
"scientificName": "Taenia taeniaeformis",
"identifier": 38922083
}
],
"dataObjects": [
@rdmpage
rdmpage / Leptograpsus
Created June 1, 2012 08:28
EOL API call for trusted content for Leptograpsus
{
"taxonConcepts": [
{
"nameAccordingTo": "WORMS Species Information (Marine Species)",
"scientificName": "Leptograpsus",
"identifier": 29178778
},
{
"sourceIdentfier": "2421051",
"nameAccordingTo": "Species 2000 & ITIS Catalogue of Life: Annual Checklist 2010",
@rdmpage
rdmpage / Pentastomida
Created June 15, 2012 16:05
Result from CSV download of search results for Pentastomida
"Url","Type","Title","Publisher Place","Publisher","Date","Authors","Volume","Language","Pages"
"http://www.biodiversitylibrary.org/page/12836712","Monograph/Item","Amphibia and reptiles, by Hans Gadow.","London,","Macmillan and co., limited,","1901","Gadow, Hans, 1855 -1928","","English",""
"http://www.biodiversitylibrary.org/page/18108555","Monograph/Item","The animal parasites of man / H. B. Fantham, J. W. W. Stephens, F. V. Theobald","New York :","W. Wood,","1920","Braun, Maximilian Gustav Christian Carl, 1850 -1930","","English","Page xvi"
"http://www.biodiversitylibrary.org/page/18109082","Monograph/Item","The animal parasites of man / H. B. Fantham, J. W. W. Stephens, F. V. Theobald","New York :","W. Wood,","1920","Braun, Maximilian Gustav Christian Carl, 1850 -1930","","English","Page 484"
"http://www.biodiversitylibrary.org/page/18109121","Monograph/Item","The animal parasites of man / H. B. Fantham, J. W. W. Stephens, F. V. Theobald","New York :","W. Wood,","1920","Braun, Maximili
@rdmpage
rdmpage / SnippetFile
Created August 14, 2012 21:50
HTML multibyte string
$html = mb_convert_encoding($html, 'UTF-8', 'HTML-ENTITIES');
@rdmpage
rdmpage / replicate-couchdb.txt
Created September 4, 2012 10:18
Replicate CouchDB
To ensure local CouchDB database is externally accessible first go to the configuration page
http://localhost:5984/_utils/config.html
and change bind_address (httpd section) from 127.0.0.1 to 0.0.0.0 then restart
CouchDB.
To confirm, use command
lsof -i -n -P | grep LISTEN
@rdmpage
rdmpage / Design document
Created September 24, 2012 09:37
Full text search in Cloudant
{
"_id": "_design/lookup",
"_rev": "2-2763d098bce604230bfc247ca06cba05",
"language": "javascript",
"indexes": {
"all": {
"index": "function(doc) {\n if (doc.title)\n {\n index(\"title\", doc.title, {\"store\": \"yes\"});\n }\n }"
}
}
}
@rdmpage
rdmpage / Notonemouridae.svg
Created September 24, 2012 10:46
Notonemouridae
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rdmpage
rdmpage / .gitignore_global
Created October 4, 2012 13:44
Global .gitignore file, set using: git config --global core.excludesfile ~/.gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Compiled Object files
@rdmpage
rdmpage / cloudant_replication.txt
Created October 4, 2012 15:36
Replicate local CouchDB database to Cloudant (replace
curl http://admin:password@localhost:5984/_replicate -H 'Content-Type: application/json' -d '{ "source": "afd", "target": "https://admin:password@rdmpage.cloudant.com/afd" , "proxy":"http://wwwcache.gla.ac.uk:8080"}'
replace "admin" and "password" by username and password
@rdmpage
rdmpage / iriscouch.txt
Created October 4, 2012 16:18
Replicate local CouchDB to iriscouch
curl http://admin:password@localhost:5984/_replicate -H 'Content-Type: application/json' -d '{ "source": "afd", "target": "https://admin:password@rdmpage.iriscouch.com/afd" , "proxy":"http://wwwcache.gla.ac.uk:8080"}'