Skip to content

Instantly share code, notes, and snippets.

View zathurarc
# zathurarc
# dark mode!
set recolor true
# Hide statusbar
set guioptions none
# Swap <C-d> and d, and change half-down to full down
map [normal] d scroll full-down
Ryan1729 / mathjax.html
Last active Sep 21, 2020
Mathjax on textarea keyup
View mathjax.html
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style type="text/css">body{
margin:40px auto;
padding:0 10px
Ryan1729 /
Created Aug 8, 2020
An over-extended Programming Language analogy

Java is premade "enterpise-grade" coffee that comes in a disposable metal can with a plastic spigot. Just heat and serve. Unfortunately the mixture is very weak, so there's a bunch of products designed for you to add to it, but you ultimately you still taste the Java underneath.

C++ is soda with lots of additives, that only comes in packages containg 6 assorted flavours, and many people don't like many of the flavours. Some people disagree on which flavours are gross. Hoever, the cans are recyclable, so that's why games use it. Unfortunately easy to cut yourself on the packaging as well.

Golang is a smaller, Plan9-flavoured, fewer ingredient, less water, version of Java. Still comes in a disposable can with a spigot.

Rust is Haskell-flavoured soda with fewer additives that only comes in one flavour, like normal, geez. The packaging is specially designed to prevent you from cutting yourself, unless you purposely remove certain parts. The packaging is also recyclable, but you need to drive to a specific plac

Ryan1729 /
Last active Jul 1, 2020
The nuclear option for when a page does not have a dark mode

Nuclear Dark Mode

Open the browser console and paste the contents of nuclearDarkMode.js inside it.

Known bugs

  • iframes apparently cannot have their styles set by the host page, and are instead removed entirely. Some pages have content in iframes.
  • pseudo-elements may still have bright background colors. Is there a reasonable way to fix this?
Ryan1729 / paste_at_the_bottom_of_world_gen.txt
Created May 15, 2020
A Dwarf fortress 0.47.04 worldgen preset with lots of volcanos
View paste_at_the_bottom_of_world_gen.txt
  • i3.config should be named /home/$USER/.config/i3/config

  • i3status.config should be named /home/$USER/.config/i3status/config

Ryan1729 / configuration.nix
Last active May 3, 2020
First attempt at a NixOS config
View configuration.nix
{ config, pkgs, ... }:
nixpkgs.config.allowUnfree = true;
imports =
[ # Include the results of the hardware scan.
Ryan1729 /
Last active Apr 29, 2020
A toy program that uses two threads to test multi-threaded debugging
use std::thread;
use std::time::{Duration, Instant};
use std::sync::mpsc::channel;
fn main() {
let (in1, out1) = channel();
let (in2, out2) = channel();
Ryan1729 /
Last active May 2, 2020
alpine linux firefox box setup script
# This rest of this script assumes that you have recently installed alpine linux, and that you have already
# set up your own user account, and logged into it. Here's how you set up a user account if you would like to
# do that before continuing, (assumes you are logged in as root, and that you want to call your account "myuser").
# Parts of this section and the below ones are based on
# adduser myuser
# apk add sudo nano
# You need to edit the /etc/sudoers file, to add a line for your user below the one for the root user in the
# "User priviledge specifications section". That is the lines should look someithing like:
# ##.
Ryan1729 /
Created Feb 16, 2020
a demonstration that glyph_brush 0.6.2 does not allow changing the alpha and the colour at the same time.
//! Example of glyph_brush usage with raw OpenGL.
//! Uses instanced rendering with 1 vertex per glyph referencing a 1 byte per pixel texture.
//! Controls
//! * Scroll to size text.
//! * Type to modify text.
//! * Resize window.
use gl::types::*;