Skip to content

Instantly share code, notes, and snippets.

Roderic Page rdmpage

Block or report user

Report or block rdmpage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Taenia taeniaeformis.json
{
"taxonConcepts": [
{
"sourceIdentfier": "6205",
"nameAccordingTo": "NCBI Taxonomy",
"scientificName": "Taenia taeniaeformis",
"identifier": 38922083
}
],
"dataObjects": [
@rdmpage
rdmpage / Leptograpsus
Created Jun 1, 2012
EOL API call for trusted content for Leptograpsus
View 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 Jun 15, 2012
Result from CSV download of search results for Pentastomida
View 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 Aug 14, 2012
HTML multibyte string
View SnippetFile
$html = mb_convert_encoding($html, 'UTF-8', 'HTML-ENTITIES');
View replicate-couchdb.txt
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 Sep 24, 2012
Full text search in Cloudant
View Design document
{
"_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 }"
}
}
}
View Notonemouridae.svg
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 Oct 4, 2012
Global .gitignore file, set using: git config --global core.excludesfile ~/.gitignore_global
View .gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Compiled Object files
@rdmpage
rdmpage / cloudant_replication.txt
Created Oct 4, 2012
Replicate local CouchDB database to Cloudant (replace
View cloudant_replication.txt
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 Oct 4, 2012
Replicate local CouchDB to iriscouch
View iriscouch.txt
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"}'
You can’t perform that action at this time.