Skip to content

Instantly share code, notes, and snippets.

View Saltssaumure's full-sized avatar
🦾
Becoming one with the machine

Saltssaumure Saltssaumure

🦾
Becoming one with the machine
View GitHub Profile
@scruss
scruss / ThePrimeMinisterWontResign-OliverDarkshire.py
Created July 9, 2022 03:58
"The Prime Minister Won't Resign", an implementation of Oliver Darkshire's one page RPG - https://twitter.com/deathbybadger/status/1545372201402114049
#!/usr/bin/env python3
#
# Implementation of Oliver Darkshire's one page RPG
# "The Prime Minister Won't Resign", published 2022-07-08
# https://twitter.com/deathbybadger/status/1545372201402114049
#
# written in deliberately simple python by scruss, 2022-07
# -*- coding: utf-8 -*-
import random
@0xf0xx0
0xf0xx0 / Discord_Class_Name_Conversion_1-10-22.txt
Created January 11, 2022 03:24
Discord changed its class names on 1/10/2022, this is the old to new name list
-12px = -12px
-24px = -24px
OSSection-27GaV2 = OSSection-1W7BUn
Shine-2sIJ1p = Shine-2gtL99
aboutMeBody-3GuvKk = aboutMeBody-1J8rhz
aboutMeGuildIcon-36UmEK = aboutMeGuildIcon-1AzRSE
aboutMeGuildIconTooltip-1hnrui = aboutMeGuildIconTooltip-2cYR0X
aboutMeSection-1Fw5Ia = aboutMeSection-PUghFQ
aboutMeTitle-1IYtPE = aboutMeTitle-3pjiS7
absoluteFill-145S64 = absoluteFill-10sFRy
According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?
@gaearon
gaearon / modern_js.md
Last active February 24, 2026 02:09
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active February 28, 2026 04:01
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@freelsn
freelsn / Makefile
Last active June 28, 2025 20:42
Universal Makefile for C/C++
# - inc/
# - *.h
# - src/
# - *.c
# - *.cpp
# - obj/
# - *.o
# - main
TARGET := main
@mikepea
mikepea / pr_etiquette.md
Last active January 23, 2026 09:48
Pull Request Etiquette

Pull Request Etiquette

Why do we use a Pull Request workflow?

PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.

Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories

Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.