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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="description" content="Interface to reorder a table based on the sum of matches from applied rules. Here, dynamic table for matching synthesis methods based on user-defined rules. Generated with assistance from ChatGPT."> | |
<meta name="author" content="sjgknight with prompting of ChatGPT and customisation"> | |
<meta name="keywords" content="HTML, JavaScript, Dynamic Table, Matching Logic"> | |
<title>Method Match Example</title> | |
<style> | |
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="description" content="Tool to take CSVs and map across columns into an LR mermaid flowchart."> | |
<meta name="author" content="sjgknight with prompting of ChatGPT and customisation"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>CSV to Mermaid Converter</title> | |
<!-- Load Mermaid.js --> | |
<script type="module"> |
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 class="in-text" version="1.0" name-delimiter=", " delimiter-precedes-et-al="never" delimiter-precedes-last="never" et-al-min="3" initialize-with="" demote-non-dropping-particle="sort-only" default-locale="en-US" xmlns="http://purl.org/net/xbiblio/csl"> | |
<info> | |
<title>APAish style for CV styled presentations only</title> | |
<title-short>cv-presentations</title-short> | |
<id>http://www.zotero.org/styles/apaish-style-for-cv-styled-presentations-only</id> | |
<link rel="self" href="http://www.zotero.org/styles/apaish-style-for-cv-styled-presentations-only"/> | |
<author> | |
<name>Simon Knight</name> | |
</author> |
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
var newFieldMode = 0; // 0: two-field, 1: one-field (with empty first name) | |
const zoteroPane = Zotero.getActiveZoteroPane(); | |
const selected = zoteroPane.getSelectedItems(); | |
for (const item of selected) { | |
let creators = item.getCreators(); | |
let newCreators = []; // Initialize newCreators array | |
for (let creator of creators) { | |
if(creator.fieldMode == 1){ |
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"> | |
<info> | |
<title>American Psychological Association 7th edition (single-spaced bibliography) w/citekey</title> | |
<title-short>APA (single-spaced) + citekey</title-short> | |
<id>http://www.zotero.org/styles/apa-single-spaced-citekey</id> | |
<link href="http://www.zotero.org/styles/apa-single-spaced-citekey" rel="self"/> | |
<link href="http://www.zotero.org/styles/apa" rel="template"/> | |
<link href="https://apastyle.apa.org/style-grammar-guidelines/references/examples" rel="documentation"/> | |
<author> |
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
// with thanks to http://wafflebytes.blogspot.com/2018/12/google-script-revisiting-making-form.html and http://wafflebytes.blogspot.com/2016/10/google-script-create-drop-down-list.html | |
// that script has some minor errors, notably asMultipleChoiceItem should be asCheckboxItem | |
// to find the question ID open the form in preview, and inspect element on the question. Scroll up the divs and you should see something like data-params='%.@.[ - the ID should be in that (and then the question text) | |
// In the googlesheet you can use the following formula to pull from the relevant column in FormResponses1 AND prepopulate this with your own responses (E2:E20) in GSOptions sheet | |
// =unique(query({GSOptions!E2:E20;'FormResponses1'!G2:G})) | |
// In the googlesheet if you want to concatenate two fields for question options you can do this | |
// =transpose(query(transpose(UNIQUE(query('Form Responses 1'!A2:C, "select C,A order by C asc",1))),,COLUMNS(UNIQUE(query('Form Responses 1'!A2:C, "select C,A order by C asc",1))))) | |
// w/ |
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
// thanks to https://medium.com/@01010111/using-google-forms-to-submit-github-issues-efdb5f876b | |
// and https://gist.github.com/bmcbride/62600e48274961819084 | |
// this first version uses the REST API and issues (not discussions) | |
/* | |
var token = "your_github_token_here"; | |
var handle = "sjgknight"; | |
var repo = "DSI_collection_sheets"; | |
function onFormSubmit(e) | |
{ | |
var title = e.values[2]; |
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
--- | |
title: "Who are you?" | |
output: html_notebook | |
editor_options: | |
chunk_output_type: inline | |
--- | |
Takes as input name, etc. | |
Outputs visualisations |