Skip to content

Instantly share code, notes, and snippets.

@jrr6
jrr6 / nLabTexImprover.user.js
Last active December 22, 2025 21:05
Improves TeX preview on nLab
// ==UserScript==
// @name nLab TeX Preview Improver
// @version 2025-12-22
// @description Improves the TeX source previewer on the nLab website.
// @author jrr6
// @match https://ncatlab.org/*
// @grant none
// @downloadURL https://gist.github.com/jrr6/c0273e1d6c04c86b84aea692bd11b9c6/raw/nLabTexImprover.user.js
// @updateURL https://gist.github.com/jrr6/c0273e1d6c04c86b84aea692bd11b9c6/raw/nLabTexImprover.user.js
// ==/UserScript==
@jrr6
jrr6 / GradescopeGraderStats.user.js
Last active April 15, 2024 00:16
Grader statistics for Gradescope
// ==UserScript==
// @name Gradescope Grader Stats
// @version 0.1
// @description Statistics about Gradescope graders.
// @author jrr6
// @match https://www.gradescope.com/courses/*/questions/*/submissions
// @grant none
// @downloadURL https://gist.github.com/jrr6/687a9bd495b6af46d5e5d699d747f5f6/raw/GradescopeGraderStats.user.js
// @updateURL https://gist.github.com/jrr6/687a9bd495b6af46d5e5d699d747f5f6/raw/GradescopeGraderStats.user.js
// ==/UserScript==
// ==UserScript==
// @name Teleparty Video
// @version 0.1.2
// @description Video RTC connection on TeleParty.
// @author jrr6
// @match https://www.netflix.com/watch/*
// @match https://netflix.com/watch/*
// @icon https://www.google.com/s2/favicons?domain=netflix.com
// @grant none
// @downloadURL https://gist.github.com/jrr6/9cb9e75fba7f7d3ef5fac308dab90539/raw/TelepartyWebRTC.user.js
@jrr6
jrr6 / PiazzaDarker.user.js
Last active August 25, 2021 13:02
Modified version of the Piazza Darker user style theme.
// ==UserScript==
// @name Piazza Darker
// @namespace http://userstyles.org
// @description Dark theme for piazza.com
// @author originally by enovid, updated by jrr6
// @homepage https://userstyles.org/styles/142015
// @include http://piazza.com/*
// @include https://piazza.com/*
// @include http://*.piazza.com/*
// @include https://*.piazza.com/*
@jrr6
jrr6 / GCalKeyboardShortcuts.user.js
Last active September 18, 2022 20:18
Adds arrow key and other useful shortcuts for navigating Google Calendar
// ==UserScript==
// @name GCalKeyboardShortcuts
// @version 1.0.3
// @description Adds arrow key and other useful shortcuts for navigating Google Calendar
// @author aaplmath
// @match https://calendar.google.com/calendar/*
// @downloadURL https://gist.github.com/jrr6/390b3ab81f28047f1c3efa0473297177/raw/GCalKeyboardShortcuts.user.js
// @updateURL https://gist.github.com/jrr6/390b3ab81f28047f1c3efa0473297177/raw/GCalKeyboardShortcuts.user.js
// @grant none
// ==/UserScript==
@jrr6
jrr6 / InteractiveMatrixFeaturifier.user.js
Last active May 21, 2021 13:23
A userscript that adds animation and custom parameter inputs to shad.io's matrix visualizer
// ==UserScript==
// @name Interactive Matrix Featurifier
// @author aaplmath
// @version 1.0.0
// @description Adds ability to run animation and manually set variables on shad.io 3b1b-style matrix visualizer.
// @match https://shad.io/MatVis/
// @downloadURL https://gist.github.com/jrr6/a4556759fed1eb9e982a3bc3c0fd1713/raw/InteractiveMatrixFeaturifier.js
// @updateURL https://gist.github.com/jrr6/a4556759fed1eb9e982a3bc3c0fd1713/raw/InteractiveMatrixFeaturifier.js
// @grant none
// ==/UserScript==
@jrr6
jrr6 / ClassroomWorkCard.user.js
Last active May 21, 2021 13:23
A userscript that adds a card showing undone work to the Google Classroom Classes page.
// ==UserScript==
// @name Classroom Work Card
// @version 0.1.8
// @description Adds a card showing undone work to the Google Classroom Classes page.
// @author jrr6
// @downloadURL https://gist.github.com/jrr6/5f7961a3e3a1b582fae94a92ee712250/raw/ClassroomWorkCard.user.js
// @updateURL https://gist.github.com/jrr6/5f7961a3e3a1b582fae94a92ee712250/raw/ClassroomWorkCard.user.js
// @match https://classroom.google.com/*
// @grant GM_addStyle
// ==/UserScript==
@jrr6
jrr6 / TripleRefLinkedList.swift
Last active September 3, 2018 15:28
A bare-bones implementation of a singly linked list Collection type in Swift with manual memory management
//
// TripleRefLinkedList.swift
//
// Created by aaplmath on 8/24/18.
// Copyright © 2018 aaplmath. All rights reserved.
//
import Darwin
/// A native Swift implementation of a singly linked list that uses triple-reference pointers
@jrr6
jrr6 / TripleRefPointer.swift
Last active January 20, 2021 20:38
An implementation of triple ref pointers in Swift, primarily to disprove Professor Brailsford from the relevant Computerphile video (https://www.youtube.com/watch?v=1s0w_p5HEuY).
// An implementation of the Triple-Ref method as described here: https://www.youtube.com/watch?v=0ZEX_l0DFK0
// The original C code is here: http://www.eprg.org/computerphile/tripref.c
// Mark - Main code
import Foundation
prefix operator *
extension Optional where Wrapped == UnsafeMutablePointer<Any> {
static prefix func *(item: UnsafeMutablePointer<T>?) -> T {
@jrr6
jrr6 / GCBackToWork.user.js
Last active May 21, 2021 13:23
A userscript that adds a button to the assignment page on Google Classroom allowing you go back to your Work list. You'll need to install this script from Tampermonkey's "Utilities" page (copy the download URL, then paste it into TamperMonkey's URL import field), as Google Chrome doesn't like Gist.
// ==UserScript==
// @name Classroom Back to Work
// @description Adds a button on the assignment page to go back to your work list, rather than the corresponding Class.
// @include https://classroom.google.com/*
// @downloadURL https://gist.github.com/jrr6/2cfb984396d0e0d556ed2b117d5fe678/raw/GCBackToWork.user.js
// @updateURL https://gist.github.com/jrr6/2cfb984396d0e0d556ed2b117d5fe678/raw/GCBackToWork.user.js
// @version 1.1.4
// @author aaplmath
// ==/UserScript==