Skip to content

Instantly share code, notes, and snippets.

Avatar

Lars Willighagen larsgw

View GitHub Profile
View incognito.js
var incognito = function(require, module, exports) {
"use strict";
function isWebkitRequestFileSystem() {
return !!window.webkitRequestFileSystem
}
function isFirefoxIndexedDB() {
return !!window.indexedDB && /Firefox/.test(window.navigator.userAgent)
}
function isIE10PlusOrEdge() {
if (document.documentMode) {
@rbnvrw
rbnvrw / LaTeXScaleBars.md
Last active Jul 29, 2022
Adding scalebars to images in LaTeX
View LaTeXScaleBars.md

Scalebar with background

Scalebar with background

To change the backgroundcolor, adjust the scalebgcolor variable to use the desired color. Add the following code to your preamble:

\usepackage{tikz}
\usepackage[usenames, dvipsnames]{color}
\definecolor{scalebgcolor}{rgb}{0.08,0.52,0.80}
@hubgit
hubgit / citation-schema.json
Last active May 2, 2022
Mapping of Highwire/Google Scholar citation_* meta fields to schema.org properties, as a JSON-LD context document. Definitions starting with "#" are invalid.
View citation-schema.json
{
"@context": {
"_links": "http://stateless.co/hal_specification.html#links",
"title": "http://schema.org/name",
"description": "http://schema.org/description",
"publisher": "#http://schema.org/publisher > http://schema.org/Organization > http://schema.org/name",
"firstpage": "http://schema.org/pageStart",
"doi": "#http://schema.org/sameAs (URL)",
"volume": "#http://schema.org/isPartOf > http://schema.org/PublicationVolume > http://schema.org/volumeNumber",
"volume": "#http://schema.org/isPartOf > http://schema.org/PublicationIssue > http://schema.org/issueNumber",