Skip to content

Instantly share code, notes, and snippets.

View JellyWX's full-sized avatar
💙
Idle

Jude Southworth JellyWX

💙
Idle
View GitHub Profile
@JellyWX
JellyWX / search.brave.js
Last active April 18, 2024 08:08
Tampermonkey Userscripts
// ==UserScript==
// @name Remove summarizer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://search.brave.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=brave.com
// @grant none
// ==/UserScript==
@JellyWX
JellyWX / filterlist
Created December 7, 2023 08:20
Custom uBlock filter list
||accounts.google.com/gsi/iframe/select$subdocument
codesandbox.io
PLEASE NOTE:
- We DO NOT recommend using the `Etc` timezones. Please select a real time region from the list, for example a country or city.
- Time region names are case sensitive
- Time regions don't contain spaces. The brackets at the end are for reference, and aren't a part of the name
Etc/GMT+12 (GMT -12)
Etc/GMT+11 (GMT -11)
Pacific/Midway (GMT -11)
Pacific/Niue (GMT -11)
Pacific/Pago_Pago (GMT -11)
@JellyWX
JellyWX / jude.goggles
Last active October 24, 2023 07:24
Brave Search goggle file
! name: jude
! description: Goggle for my own search results
! public: false
! author: Jude S
! tlds
*.uk$boost=1
*.org$boost=1
! everyday sites
@JellyWX
JellyWX / cube.py
Last active May 29, 2023 09:04
3D cube rendering in Pygame
import pygame
from math import cos, sin, pi
from numpy import matrix
from time import sleep
from random import randint
WHITE = (255, 255, 255)
WIDTH = 500
HEIGHT = 500
@JellyWX
JellyWX / profanity.regex
Created May 23, 2019 20:40
A regex of many profanities
nig[^(h|n|m)]
n.{0,3}gg
n(.)\1{0,}gg
f.{1}g
(c|k)(u|v)\1{0,}nt
(c|k)r.?.?k.?r
f(.)\1{0,}(k|ck){1,2}
d(i|1|y)\1{0,}(ck|k)
(c|k)(0|o|u)\1{0,}ck
sh(i|1)\1{0,}t
@JellyWX
JellyWX / pre-commit
Created September 8, 2022 07:37 — forked from mgershovitz/pre-commit
Git pre-commit hook to prevent accidentally committing debug code (add NO_COMMIT in source comment)
#!/bin/bash
if git diff --cached | grep '^[+d].*NO_COMMIT'; then
echo "Can't commit file with NO_COMMIT comment, remove the debug code and try again"
exit 1
fi
@JellyWX
JellyWX / mastermind.py
Created November 23, 2016 13:02
a python mastermind game
from random import randint
from sys import stdout
correct = [randint(1,8), randint(1,8), randint(1,8), randint(1,8)]
usr_guess = [0, 0, 0, 0]
usr_guess_output = []
usr_guess_output_n = []
guesses = 0
@JellyWX
JellyWX / acceleration.py
Last active May 21, 2020 21:20
a python script to calculate acceleration from time or distance when provided with any 1 missing value
from math import sqrt
## V**2 - U**2 = 2*A*X ##
## A = (v-u)/T ##
def main():
dis = str(input('Are you working for distance or time? > '))
@JellyWX
JellyWX / forms.py
Created July 31, 2019 11:10
Small form modelling system for Flask
import typing
from werkzeug.security import generate_password_hash, check_password_hash
from werkzeug import ImmutableMultiDict
class Field():
class FieldLengthExceeded(Exception):
pass
class MissingFieldData(Exception):
pass