Skip to content

Instantly share code, notes, and snippets.

View sbliven's full-sized avatar
💻
Typing...

Spencer Bliven sbliven

💻
Typing...
View GitHub Profile
@sbliven
sbliven / SMBC Spheres.ipynb
Created April 17, 2026 07:32
Python notebook containing the solution to a puzzle from 'Saturday Morning Breakfast Cereal' comic 'Spheres Part 5'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbliven
sbliven / RDS small tags-2025-11-11.user.js
Created November 11, 2025 10:49
A userscript to experiment with modifying the RDS Explorer css. Install with greasemonkey, tampermonkey, or another userscript manager.
// ==UserScript==
// @name RDS Explorer small tags
// @namespace http://tampermonkey.net/
// @version 2025-11-11
// @description Test CSS changes eg to reduce tag size
// @author Spencer Bliven
// @match https://open-research-data-portal.ch/rds-explorer/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=open-research-data-portal.ch
// @grant none
// ==/UserScript==
@sbliven
sbliven / Verben mit festen Präpositionen.md
Created June 9, 2025 19:10
Anki cards for german verbs with fixed prepositions. This markdown file is intended for formatting with the Obsidian Flashcards Plugin.
tags
anki
deutsch
gramatik
präpositionen
created 2024-04-23
cards-deck deutsch-b2-präp
digraph G {
layout="neato";
graph [ overlap=false, splines=true ];
subgraph cluster_m {
m00 [ pos="0,0!", label="1"];
m01 [ pos="0,1!", label="1" ];
m02 [ pos="0,2!", label="3" ];
m03 [ pos="0,3!", label="1" ];
m04 [ pos="0,4!", label="4" ];
@sbliven
sbliven / darkmode
Last active November 20, 2024 08:01
Script to toggle dark mode on and off on MacOS
#!/bin/bash
# usage: darkmode [dark|light]
set -euo pipefail
shopt -s nocasematch
if [[ $# > 0 ]]; then
# mode given
case "$1" in
dark)
@sbliven
sbliven / gh_title.js
Last active October 24, 2024 12:46
Custom function for the Obsidian Templater plugin (https://github.com/SilentVoid13/Templater/) to convert a github issue URL to a link with the issue title. Only works for public repos.
async function getGitHubIssueTitle(owner, repo, issueNumber) {
const url = `https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`;
const response = await fetch(url);
if (!response.ok) {
throw new Error(`Error fetching issue: ${response.status}`);
}
const issueData = await response.json();
@sbliven
sbliven / index.html
Created August 20, 2024 19:33
Websafe color filter
<!--
SVG filter to make your images look like its 1999!
(Hi Dan!)
-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 160">
<defs>
<linearGradient id="rainbow" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100%" y2="0">
<stop offset="0" stop-color="#ff0000"></stop>
<stop offset="0.2" stop-color="#ffff00"></stop>
@sbliven
sbliven / Automata.ipynb
Created May 2, 2024 08:57
Explore 1D Cellular Automata in python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbliven
sbliven / handlebar-demo.ts
Created October 25, 2023 08:03
Initial draft for job configuration schema
const Handlebars = require('handlebars');
const json = {
job: {
pids: ["10/1","10/2","10/3"],
owner: "bliven_s",
status: "SUCCESS"
},
secrets: {
jwt_token: "8AK820="
@sbliven
sbliven / 1_to_1_scale.ipynb
Created April 17, 2023 23:14
SVG images for XKCD "1-to-1 scale" https://xkcd.com/2761/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.