Skip to content

Instantly share code, notes, and snippets.

View dufourc1's full-sized avatar
🎧
Living on caffeine ☕

Charles Dufour dufourc1

🎧
Living on caffeine ☕
View GitHub Profile
@michaeldorner
michaeldorner / temporal_graph.tikz
Last active September 13, 2023 07:31
Example temporal graph in TikZ
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{backgrounds, positioning}
\usepackage{xcolor}
\definecolor{ACMYellow}{RGB}{255, 214, 0}
\definecolor{ACMOrange}{RGB}{252, 146, 0}
\definecolor{ACMRed}{RGB}{253, 27, 20}
@OmidS
OmidS / edit-zotero-extra-field.js
Last active August 14, 2024 10:24
Removes some values from the Zotero extra field
// Original reference:
// https://github.com/eschnett/zotero-citationcounts/issues/2#issuecomment-765117249
// To run this, open Tools > Developer > Run JavaScript in Zotero, paste the JavaScript below and then press run.
// To make sure this code won't delete too much, by default it will just rehearse what will happen if you run it.
// Press cancel on any dialog to stop the rehearsal.
// If you are happy with the rehearsal, change 'rehearse' in the next line to 'false' and run again.
const rehearse = true; // Set this to false to actually make changes
const moveToTop = false; // Set this to true to move to top instead of deleting. This can help make "extra" sortable.
@psychemedia
psychemedia / Testing examples.md
Last active December 4, 2024 08:01
Examples of things we can test for autograding and auto-feedback

Test Examples

Trying to identify testable things for use in autograders and automated code feedback tools...

Automated testing of computer code can be used to support learning in several ways.

For example, automated tests may be used to:

@Susensio
Susensio / numpy_lru_cache.md
Last active November 26, 2024 21:25
Make function of numpy array cacheable

How to cache slow functions with numpy.array as function parameter on Python

TL;DR

from numpy_lru_cache_decorator import np_cache

@np_cache()
def function(array):
 ...