Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
working

Erik Hetzner egh

💭
working
View GitHub Profile
@egh
egh / api-access-example.py
Last active Aug 29, 2015
python rich citations api access example
View api-access-example.py
#!/usr/bin/env python
# Get the authors from a paper via api.richcitations.org
# call as api-access-example.py 10.1371/journal.pone.0106530
import json
import requests
import sys
BASE_URL='http://api.richcitations.org/v0/'
@egh
egh / wl-fastfind.el
Created Oct 19, 2014
Wanderlust fastfind
View wl-fastfind.el
;;; wl-fastfind.el --- Prompt for a query string and display search results.
;; Copyright (C) 2014 Erik Hetzner <egh@e6h.org>
;; Author: Erik Hetzner <egh@e6h.org>
;; Keywords: mail, net news
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
@egh
egh / pull_request.md
Last active Sep 15, 2015 — forked from diiq/pull_request.md
Pull Request Template
View pull_request.md

name: pr

key: pr

--

Link to story: https://www.pivotaltracker.com/story/show/$1

What this PR does:

${2:Explain in a few sentences what functionality changed, and how.}

${3:Can your changes be seen by a user? Then add a screenshot. Is it an interaction? Perhaps a recording.}

View Washington Monthly.js
{
"translatorID":"e623eec7-ad54-4201-b709-654bf3fd7f70",
"label":"Washington Monthly",
"creator":"Sebastian Karcher",
"target":"^https?://www\\.washingtonmonthly\\.com",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
View VoxEU.js
{
"translatorID":"aa6ba023-4fbe-407c-b0c3-5997887db1eb",
"label":"VoxEU",
"creator":"Sebastian Karcher",
"target":"^https?://www\\.voxeu\\.org",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
View The New Yorker.js
{
"translatorID":"0fba73bf-f113-4d36-810f-2c654fa985fb",
"label":"The New Yorker",
"creator":"Sebastian Karcher",
"target":"https?://www\\.newyorker\\.com",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
@egh
egh / Wikileaks Cables.js
Created Jun 27, 2011
wikileaks cables zotero translator
View Wikileaks Cables.js
{
"translatorID": "6bb5099b-ae1a-4a08-8f2a-3429138ec2e5",
"label": "Wikileaks Cables",
"creator": "Erik Hetzner",
"target": "^http://(www\\.)?wikileaks\\.org/cable/",
"minVersion": "1.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
View wl-auto-config.el
;; Copyright 2011 Erik Hetzner
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@egh
egh / template.js
Created Oct 22, 2011
Zotero translator framework template
View template.js
FW.Scraper({
itemType : 'journalArticle',
detect : 'always'
title : FW.Xpath(/.../).text().trim(),
creators : FW.Xpath(/.../).text().trim().
cleanAuthor("author"),
date : FW.Xpath(/.../).text(),
volume : FW.Xpath(/.../).text(),
issue : FW.Xpath(/.../).text(),
publicationTitle : "...",
View gist:4580965
{
"translatorID": "9fa7d89b-d5ad-4c68-a834-f96fbc8376fa",
"translatorType": 4,
"label": "Chista",
"creator": "CRCIS",
"target": "http://journals\\.ut\\.ac\\.ir/page/main-page.html",
"minVersion": "1.0",
"maxVersion": "",
"priority": 500,
"inRepository": true,