View merge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from pathlib import Path | |
import xml.etree.ElementTree as ET | |
namespaces = {'csl': 'http://purl.org/net/xbiblio/csl'} | |
ET.register_namespace('', namespaces['csl']) | |
inline = ET.parse(sys.argv[1]) |
View BlaBla.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"translatorID": "f4a4148e-990c-45fb-a25f-579e90dfbcd7", | |
"label": "BlaBla Export", | |
"creator": "Emiliano Heyns", | |
"target": "xml", | |
"minVersion": "5.0.0", | |
"maxVersion": null, | |
"priority": 50, | |
"inRepository": false, | |
"translatorType": 2, |
View BlaBla.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"translatorID": "f4a4148e-990c-45fb-a25f-579e90dfbcd7", | |
"label": "BlaBla Export", | |
"creator": "Emiliano Heyns", | |
"target": "xml", | |
"minVersion": "5.0.0", | |
"maxVersion": null, | |
"priority": 50, | |
"inRepository": false, | |
"translatorType": 2, |
View zotero-cite-columns.csl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function set(extra) { | |
extra += ` | |
${prefix}${casing[field] || field} | |
${value.raw ? "=" : ":"} | |
${value.value}`; | |
return extra; | |
} |
NewerOlder