Skip to content

Instantly share code, notes, and snippets.

View CAYdenberg's full-sized avatar

Casey Ydenberg CAYdenberg

View GitHub Profile
// ==UserScript==
// @name Obscure journal names in PubMed
// @namespace http://tampermonkey.net/
// @version 2024-02-01
// @description try to take over the world!
// @author You
// @match https://pubmed.ncbi.nlm.nih.gov/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=nih.gov
// @grant none
// ==/UserScript==
@CAYdenberg
CAYdenberg / html-multiple-choice.Rmd
Last active January 31, 2024 22:38 — forked from markdly/html-multiple-choice.Rmd
Multiple choice quiz question Rmarkdown
---
output:
html_document:
theme: cerulean
---
### Example html multiple choice question using Rmarkdown
<!-- Render this Rmarkdown doc to html to make an interactive html / js multiple choice question -->

Purpose

The technologies that became the world wide web were originally created to facilitate communications between researchers. One of the great ironies of digital age is that while the web has transformed nearly every aspect of our lives, it lags far behind in its original mission. Communications between researchers still make the PDF the default format for scholarly articles. Communications from researchers to the public tend to rely on general-purpose content management systems, and there is a lack of dedicated tooling needed by researchers and science communicators.

One area where the current web lags far behind its potential is the visual display of quantitative information. Web pages are documents, but they are also software, meaning that any data graphic can be rescalable, interactive, and directly linkable to the underlying data. Yet many charts on the web today provide a poor experience for users: they are often to load due to heavy resources, portray data inaccuately, are illegible on mobile

k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcf3x8ZPnnXmRu7p401TXxn1KyFdlEuTUIKCi+ZO038ZVnyYeXKUHt3Qpz7zDV2ri/PyZoBH4+QgGrq7Ri31ySleJHH6pJlOLimsSKBBREyu1/Li36IjFaOePIrerzTh7hMo5v86ucQcFTdmARJ4Yd1zXexKw5yAq17ed+LGmnLQIDAQAB
var ed = new ManuscriptsEditor(document.getElementById('root')); ed.render('<sec xml:lang="en" xmlns:xlink="http://www.w3.org/1999/xlink" id="Section_2.2.1"><label>2.2.1</label><title>Specifications, standards, and handbooks</title><p >The following specifications, standards, and handbooks form a part of this document to the extent specified herein. Unless otherwise specified, the issues of these documents are those cited in the solicitation or contract (see 6.2).</p><p >FEDERAL STANDARDS</p><def-list ><def-item ><term >FED-STD-595/24097</term><def ><p >Green, Semigloss</p></def></def-item><def-item ><term >FED-STD-595/30051</term><def ><p >Brown, Flat or Lusterless</p></def></def-item><def-item ><term >FED-STD-595/32169</term><def ><p >Orange, Flat or Lusterless</p></def></def-item></def-list><p >DEPARTMENT OF DEFENSE STANDARDS</p><def-list ><def-item ><term >MIL-STD-3010</term><def ><p >Test Procedures for Packaging Materials.</p></def></def-item></def-list><p >(This text was changed in the Manuscript plugi
var ed = new ManuscriptsEditor(document.getElementById('root'));ed.render('<sec xml:lang="en" xmlns:xlink="http://www.w3.org/1999/xlink" id="Section_3.4"> <label>3.4</label> <title>Type II packaging and labeling</title> <p >This text was edited in the Manuscript editor.</p></sec>')
var ed = new ManuscriptsEditor(document.getElementById('root')); ed.render('<table-wrap><caption><p>TABLE I. Sampling.</p></caption><table><tbody><tr><td>Number in a lot</td><td>Number of samples</td></tr><tr><td>2 to 25</td><td>2</td></tr><tr><td>26 to 150</td><td>3</td></tr><tr><td>151 to 600</td><td>5</td></tr><tr><td>601 to 1,200</td><td>7</td></tr><tr><td>1,201 to 7,000</td><td>8</td></tr><tr><td>7,001 to 9,000</td><td>10</td></tr><tr><td>over 9000</td><td>20</td></tr></tbody></table></table-wrap>');
const Button = props =>
<button type="button" onclick="{props.onClick}" disabled="{!props.onClick}">
{props.children}
</button>
@CAYdenberg
CAYdenberg / button.js
Created November 8, 2018 22:52
simple button
const Button = props =>
<button type="button" onclick="{props.onClick}">
{props.children}
</button>
@CAYdenberg
CAYdenberg / index.js
Created November 8, 2018 22:50
fragment
{props.visible && <component>}