Skip to content

Instantly share code, notes, and snippets.

View zotero-cite-columns.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded">
<!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
<info>
<title>Zotero Citation Columns</title>
<id>http://www.zotero.org/styles/zotero-cite-columns</id>
<!-- link href="http://www.zotero.org/styles/zotero-cite-columns" rel="self"/>
<link href="https://github.com/retorquere/zotero-citation-columns" rel="documentation"/ -->
<author>
<name>Brenton M. Wiernik</name>
View gist:28460e68156b89b82e6cc00e1792adde
This file has been truncated, but you can view the full file.
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE itemTypes ( itemTypeID INTEGER PRIMARY KEY, typeName TEXT, templateItemTypeID INT, display INT DEFAULT 1 );
INSERT INTO itemTypes VALUES(1,'note',NULL,0);
INSERT INTO itemTypes VALUES(2,'book',NULL,2);
INSERT INTO itemTypes VALUES(3,'bookSection',2,2);
INSERT INTO itemTypes VALUES(4,'journalArticle',NULL,2);
INSERT INTO itemTypes VALUES(5,'magazineArticle',NULL,2);
INSERT INTO itemTypes VALUES(6,'newspaperArticle',NULL,2);
View CSV.js
{
"translatorID": "25f4c5e2-d790-4daa-a667-797619c7e2f2",
"label": "CSV",
"creator": "Philipp Zumstein and Aurimas Vinckevicius",
"target": "csv",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"displayOptions": {
"exportCharset": "UTF-8xBOM",
View download.py
#!/usr/bin/env python3
import scrapy
from scrapy.pipelines.files import FilesPipeline
from scrapy.exceptions import CloseSpider
import sys
import os
ITEM_PIPELINES = {'SoundZipPipeline': 1}
View mnras.bib
@preamble{
\newcommand{\mnras}{Monthly Notices of the Royal Astronomical Society}
}
@ARTICLE{2019MNRAS.489..962H,
author = {{Howard}, A.~D.~P. and {Whitworth}, A.~P. and {Marsh}, K.~A. and {Clarke}, S.~D. and {Griffin}, M.~J. and {Smith}, M.~W.~L. and {Lomax}, O.~D.},
title = "{L1495 revisited: a PPMAP view of a star-forming filament}",
journal = {\mnras},
keywords = {stars: formation, dust, extinction, ISM: structure, submillimetre: ISM, Astrophysics - Astrophysics of Galaxies},
year = 2019,
View putout-new-line-plugin.js
module.exports.fix = (path) => {
path.node.value.raw = '\n';
};
module.exports.traverse = ({push}) => ({
TemplateLiteral(path) {
const [start] = path.node.quasis;
if (/^\n\s+/.test(start.value.raw))
push(path.get('quasis.0'));
View source.js
export function set(extra) {
extra += `
${prefix}${casing[field] || field}
${value.raw ? "=" : ":"}
${value.value}`;
return extra;
}
View RIS-citekey.js
{
"translatorID": "32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7-citekey",
"label": "RIS with citation key",
"creator": "Simon Kornblith and Aurimas Vinckevicius and Emiliano Heyns",
"target": "ris",
"minVersion": "3.0.4",
"maxVersion": "",
"priority": 100,
"configOptions": {
"async": true,
View aliases.md
  • # Volume => numberOfVolumes
  • # a bajennoù => numPages
  • # a levrennoù => numberOfVolumes
  • # av sider => numPages
  • # av volum => numberOfVolumes
  • # av volumer => numberOfVolumes
  • # de páginas => numPages
  • # de volumes => numberOfVolumes
  • # delen => numberOfVolumes
  • # di Pagine => numPages
View aliases.md
  • # Volume => numberOfVolumes
  • # Volume => numberOfVolumes
  • # a bajennoù => numPages
  • # a bajennoù => numPages
  • # a levrennoù => numberOfVolumes
  • # a levrennoù => numberOfVolumes
  • # av sider => numPages
  • # av sider => numPages
  • # av volum => numberOfVolumes
  • # av volum => numberOfVolumes