Skip to content

Instantly share code, notes, and snippets.

View jlcolbert's full-sized avatar
🦇

Jay L. Colbert jlcolbert

🦇
View GitHub Profile
from collections import namedtuple
DataProvider = namedtuple('DataProvider', 'code oai_url mdprefix oai_sets')
OAI_DICT = {
'boynton': DataProvider('boynton',
'http://dpanther.fiu.edu/sobek/sobekcm_oai.aspx',
'oai_dc',
['boy']),
'brockway': DataProvider('brockway',
@FarisSquared
FarisSquared / Zotero delete all tags.md
Last active June 26, 2023 06:12
Zotero delete all tags batch

Zotero Delete All Tags

Simple and easy steps to remove all the tags in your Zotero Library.

The script works on the library you last selected or interacted with. it does not work on collections (you can modify it to do what you need.)

Steps:

  1. Ensure that your are using (Zotero 5).
  2. click on your library icon.
  3. click Tool (from the top).
@jermnelson
jermnelson / api-any-linked-data.ipynb
Last active July 19, 2021 18:05
How to use Sinopia to create ANY kind of linked data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adam-james-v
adam-james-v / ob-babashka.el
Last active February 8, 2024 16:25
a quick change of ob-clojurescript to try use Babashka.
;;; ob-babashka.el --- org-babel functions for ClojureScript evaluation -*- lexical-binding: t; -*-
;; Author: Adam James Vermeer
;; Maintainer: Adam James Vermeer
;; Created: 25 June 2021
;; Keywords: literate programming, reproducible research, babashka, clojure, scripting
;; Homepage: https://gist.github.com/adam-james-v/f4d2b75a70b095d14a351a1eff96b4b0
;; Package-Requires: ((emacs "24.4") (org "9.0"))
;; This file is modified from [[https://github.com/emacsmirror/ob-clojurescript/blob/master/ob-clojurescript.el][ob-clojurescript]]
@adam-james-v
adam-james-v / literate-clojure-emacs-config.org
Created April 4, 2021 04:45
A minimum-viable emacs config. for literate programming with Clojure.

Emacs Config

;;

This is a ‘minimum viable config’ built for the purpose of literate programming with Clojure / Clojurescript. It uses MELPA to download and install a few packages that I consider necessary for a good Clojure dev. experience, though that’s of course only my opinion. I use CIDER, a robust and popular REPL tool. It could arguably be substituted for inf-clojure, but I haven’t tried that myself.

This config does assume that you already have emacs installed and that you have at least a cursory understanding of how to navigate and use it. Or, at the very least know a few keywords to search as you try learn things. Emacs can be a daunting tool (I don’t even know most of it myself yet, honestly), but you can do the most critical things without too much difficulty and a bit of patience.

(defun vulpea-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
tasks."
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)
@chrisdaaz
chrisdaaz / gitignore.md
Last active May 10, 2021 16:52
A basic introduction to .gitignore for the "Git and GitHub for Librarians" course.

Gitignore

The .gitignore file is essential for keeping git repositories clear or any clutter.

This "Gitignore Explained" article from Free Code Camp does a great job of explaining the .gitignore file. Please read it.

Some common examples of files to include in your repository's .gitignore file are:

  • files containing sensitive server information (e.g. authentication keys, tracking codes, storage IDs, intranet URLs, etc.)
  • folders containing the output files for website applications / static site generators

Setting Up Your Computer

These instructions provide an opinionated method for setting up your computer to use Git and GitHub for this course. These instructions assume that you are new to Git, terminals, and text editors. You are absolutely welcome to disregard my suggestions if you're comfortable with command line interfaces and text editors. Experienced users can skim this page and follow along beginning at the "Your First Repo" section.

Learning Git and GitHub requires setting up accounts and installing some free software packages. This section steps you through the process of setting up your computer. If you're comfortable using text editors and terminals, you can disregard my recommendations.

GitHub

Create a GitHub account: Visit https://github.com/ and sign up for a free account.

@chrisdaaz
chrisdaaz / git-for-librarians-reading-list.md
Last active October 25, 2023 03:37
A reading list for librarians learning about Git and GitHub

Git and GitHub for Librarians: A Brief Bibliography

Each citation includes an abstract or annotation. Feel free to suggest an addition!

Libraries

Davis, Robin Camille. 2015. “Git and GitHub for Librarians.” Publications and Research, January. https://academicworks.cuny.edu/jj_pubs/34.

  • One of the fastest-growing professional social networks is GitHub, an online space to share code. GitHub is based on free and open-source software called Git, a version control system used in many digital projects, from library websites to government data portals to scientific research. For projects that involve developing code and collaborating with others, Git is an invaluable tool; it also creates a backup system and structured documentation. In this article, we examine version control, the particulars of Git, the burgeoning social network of GitHub, and how Git can be an archival tool.
@idelem
idelem / titleUrlMarkdownClip.js
Last active March 12, 2024 02:01 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;