Skip to content

Instantly share code, notes, and snippets.

@zuphilip
zuphilip / cowaboo-zotero.yaml
Last active January 23, 2016 23:39
Zotero Swagger Test
swagger: '2.0'
info:
version: 1.0.0
title: zotero-swagger.json
description: |
#### Test
Test for a Swagger Interface of the Zotero Web API https://www.zotero.org/support/dev/web_api/v3/basics
Adapted https://github.com/stadja/cowaboo see also http://stadja.net:81/cowaboo-swagger/#!/zotero/
schemes:
{
"translatorID": "4b0b42df-76b7-4a61-91aa-b15bc553b77d",
"label": "Fachportal Pädagogik",
"creator": "Philipp Zumstein",
"target": "^https?://www\\.fachportal-paedagogik\\.de/fis_bildung/|^https?://www?\\.pedocs\\.de/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
@zuphilip
zuphilip / example.xml
Last active September 12, 2019 10:37
OpenSearch Example
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>MADOC </ShortName>
<LongName>MADOC </LongName>
<Description>Search engine full name and summary</Description>
<Contact>[email protected]</Contact>
<Developer>http://www.eprints.org/</Developer>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
<Url indexOffset="0" template="https://ub-madoc.bib.uni-mannheim.de/cgi/search/simple?q={searchTerms}&amp;search_offset={startIndex}&amp;output=Atom" type="application/atom+xml"/>
@zuphilip
zuphilip / doai.xml
Last active May 22, 2016 21:50
OpenSearch Description of DOAI for Zotero
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>DOAI</ShortName>
<Description>Digital Open Access Identifier Lookup</Description>
<Image width="16" height="16" type="image/x-icon">http://dissem.in/favicon.ico</Image>
<Url type="text/html" method="GET"
xmlns:z="http://www.zotero.org/namespaces/openSearch#"
template="http://doai.io/{z:doi}"/>
</OpenSearchDescription>
@zuphilip
zuphilip / advertise.html
Last active May 22, 2016 21:51
Link to doai.xml
<!DOCTYPE html>
<html>
<head>
<link rel="search" type="application/x-openurl-opensearchdescription+xml" title="DOAI Lookup" href="https://gist.githubusercontent.com/zuphilip/87350d384efb85e540a68234d48762b0/raw/5b6d63bd48226db5e9e667e84a8f1ca23e9d8b0c/doai.xml">
</head>
<body>
Select "Add DOAI" from the Locate menu to add the DOAI lookup engine.
</body>
</html>
@zuphilip
zuphilip / bash.sh
Created April 28, 2016 22:06
Checking CSL Doku Links
$ grep -Poh '[^"]*(?=" rel="documentation")' a* | xargs curl -ILv
* timeout on name lookup is not supported
* Trying 207.45.165.3...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to aom.org (207.45.165.3) port 80 (#0)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0> HEAD /uploadedFiles/Publications/AMR/AMR%20Style%20Guide%202014.pdf HTTP/1.1
> Host: aom.org
> User-Agent: curl/7.44.0
> Accept: */*
swagger: '2.0'
# This is your document metadata
info:
version: "0.0.0"
title: Translation Server API
description: |
https://github.com/zotero/translation-server
by zuphilip
schemes:
@zuphilip
zuphilip / enwiki-output-top100.txt
Created June 10, 2016 11:23
Analysis of urls referenced in enwiki
240517 http://books.google.com
148920 https://books.google.com
143683 http://news.bbc.co.uk
104078 http://www.nytimes.com
100249 http://www.census.gov
85375 http://www.bbc.co.uk
62074 http://factfinder2.census.gov
51794 http://www.stat.gov.pl
47973 http://www.guardian.co.uk
43483 http://news.google.com