Skip to content

Instantly share code, notes, and snippets.

View floriandierickx's full-sized avatar

Florian Dierickx floriandierickx

View GitHub Profile
@floriandierickx
floriandierickx / zotero-collection-merge_windows.sh
Last active July 25, 2023 15:10 — forked from kmlawson/zotero-collection-merge.sh
Takes a set of exported bibtex collections from Zotero using Better BibTeX plugin, converts them to bibliography entries in markdown format with sub-headings for each collection.
#!/bin/sh
## Introduction
# Can be used to create a merged bibliography from a set of exported collections
# This is a slightly modified version of https://gist.github.com/kmlawson/3bdfd917ef55969faec7768c140dcdaa
# that works inside a conda-environment on windows
# Run this code using 'bash zotero-collection-merge.sh' inside folder with bibtexfiles, after having
# exported bib-files with BetterBibTex according to https://forums.zotero.org/discussion/88163/export-bibliography-but-preserve-hierarchy-of-sub-folders
Yunohost encountered an internal error:/
Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:
Action
POST /apps
{"app":"redirect","args":"domain=huginn.floriandrx.nohost.me&path=%2F&redirect_path=http%3A%2F%2F127.0.0.1%3A49156&redirect_type=private_proxy","label":"Huginn"}
Traceback
@floriandierickx
floriandierickx / CSV (customized).js
Created November 30, 2020 13:11
Zotero CSV Translator - Edit to [1] remove heading columns, [2] retain author, title, type, number, date, url
{
"translatorID": "25f4cd91-d190-4dab-a6817-799154c7e2f2",
"label": "CSV (customized)",
"creator": "Philipp Zumstein and Aurimas Vinckevicius",
"target": "csv",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"displayOptions": {
"exportCharset": "UTF-8xBOM",
citation: /^(\@\w\S+\d\d\d\d)/,
t.citation_ext = /^(\@\w\S+\d\d\d\d)/
--> gives first line, errors
strict (not working):
(\@[(A-Za-z)]+_[(A-Za-z)]+_[(0-9)]{4}?)
!! /^(( ||\[|\()\@\w\S+)( |\.|\]|\))/ (working)
6059c6059,6060
< comment: !0
---
> comment: !0,
> citation: !0
6115a6117
> case u.citation:
6432a6435
> citation: !0,
8471c8474
This file has been truncated, but you can view the full file.
! function(t) {
function e(t) {
Object.defineProperty(this, t, {
enumerable: !0,
get: function() {
return this[f][t]
}
})
}