Skip to content

Instantly share code, notes, and snippets.

@rdmpage
rdmpage / doiRA.js
Created May 30, 2013 15:47
Bookmarklet to find registration agency of a DOI using CrossRef service, see http://www.crossref.org/crweblog/2013/05/find_the_registration_agency_f.html. Create a bookmark on your browser bookmark bar and paste Javascript below as bookmark address. Then highlight DOI on web page, click book mark and see the registration agency.
javascript:u=location.href;a=false;x=window;e=x.encodeURIComponent;d=document;if((s=d.selection)?t=s.createRange().text:t=x.getSelection()+'')(r=/(doi:)?\s?(10\.\d{4}\/\S+)/.exec(t))?u=r[2]:a=true;a?alert('Please%20highlight%20a%20full%20DOI,%20or%20deselect%20text%20to%20add%20this%20page.'):w=open('http://doi.crossref.org/doiRA/'+u,'DOI%20Registration%20Agency','width=720,height=755,scrollbars,resizable');void(x.setTimeout('w.focus()',200));
@rdmpage
rdmpage / POST.json
Created September 8, 2013 13:29
Example of BioNames API adding identifiers and thumbnail to a BibJSON format reference. Simply POST JSON to http://bionames.org/api/api_lookup.php
{ "id":"B25", "author":[ {"firstname":"B","lastname":"Kensley","name":"B Kensley"} ], "type":"article", "title":" Decapod Crustacea from the south-west Indian Ocean.", "journal":{ "name":"Annals of the South African Museum ", "volume":"52", "pages":"149--181" }, "year":"1969", "identifier":[]}
@rdmpage
rdmpage / README.md
Last active December 22, 2015 21:58
Zoomable page

Zoomable image viewer based on code from tlrobinson

@rdmpage
rdmpage / pinnotheridae.gml
Created November 21, 2013 09:20
Graph of the GBIF classification of the pea crabs (family Pinnotheridae) in GML format.
graph
[directed 1
node [ id 8672 label "Pinnotheridae" ]
node [ id 4645088 label "Alain" ]
node [ id 5971711 label "Alain crosnieri" ]
node [ id 5971712 label "Alain raymondi" ]
node [ id 4382392 label "Alainotheres" ]
node [ id 4382393 label "Alainotheres leloeuffi" ]
node [ id 4645085 label "Arcotheres" ]
node [ id 5971485 label "Arcotheres latifrons" ]
{
"responseCode": 1,
"handle": "10.1186/1475-2875-12-415",
"values": [
{
"index": 1,
"type": "URL",
"data": "http://www.malariajournal.com/content/12/1/415",
"ttl": 86400,
"timestamp": "2013-11-16T20:02:17Z"
@rdmpage
rdmpage / Dutch.txt
Last active January 4, 2016 20:48
Translation of "En dan nu: het ecologisch weerbericht" by @schilthuizen https://www.researchgate.net/publication/254909886_En_dan_nu_het_ecologisch_weerbericht
En dan nu: het ecologisch weerbericht ‘Wisselvallig. De voedselwebben in
het midden en oosten van het land vertonen matige tot krachtige
verstoring. Biodiversiteits- indices liggen onder het gemiddelde voor
deze tijd van het jaar. De populatie-afnames van waterinsecten zijn
matig, fase III, langs de kust en rond het IJsselmeer soms krachtig,
fase IV of V. En in het Groene Hart is er een pollinatie-alarm van
kracht’. Toekomstmuziek, natuurlijk. Maar met een beetje fantasie is
zo’n ‘ecologisch weerbericht’ over enkele decennia misschien geen
science fiction meer. Al éénderde eeuw registreert EIS-Nederland de
verspreiding en het voorkomen van de Nederlandse insecten en andere
@rdmpage
rdmpage / index.html
Created March 7, 2014 13:25
GBIF data overlayed on Google Maps
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GBIF and Google Maps</title>
<style type="text/css">
body {
margin: 0;
@rdmpage
rdmpage / index.html
Created March 7, 2014 13:28
GBIF data overlayed on Google Maps
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GBIF and Google Maps</title>
<style type="text/css">
body {
margin: 0;
@rdmpage
rdmpage / index.html
Created April 2, 2014 13:55
Edit point location
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Edit point location</title>
<style type="text/css">
body {
margin: 0;
padding: 40px;
@rdmpage
rdmpage / index.html
Last active August 29, 2015 13:58
Edit point location (with georeferencing)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Edit point location (with georeferencing)</title>
<style type="text/css">
body {
margin: 0;
padding: 40px;