Skip to content

Instantly share code, notes, and snippets.

View caitlynrw's full-sized avatar

Caitlyn Williams caitlynrw

View GitHub Profile
@angeld23
angeld23 / remove_twitter_blue_promo.user.js
Last active March 9, 2024 03:23
Remove Twitter Blue Promotions: Removes the "Get Verified" box on the Home page and the "Verified" button on the sidebar
// ==UserScript==
// @name Remove Twitter Blue Promotions
// @namespace https://d23.dev/
// @version 1.1
// @description Removes the "Get Verified" box on the Home page and the "Verified" button on the sidebar
// @author angeld23
// @match *://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
.org $8000
.org $ff00
XAML = $24 ; Last "opened" location Low
XAMH = $25 ; Last "opened" location High
STL = $26 ; Store address Low
STH = $27 ; Store address High
L = $28 ; Hex value parsing Low
H = $29 ; Hex value parsing High
YSAV = $2A ; Used to see if hex value is given
@darkxst
darkxst / rules.txt
Last active June 30, 2024 14:20 — forked from denniskupec/rules.txt
KiCad DRC rules for JLCPCB, 2 & 4-layer PCB
(version 1)
#Kicad 7
# 2-layer, 1oz copper
(rule "Minimum Trace Width (outer layer)"
(constraint track_width (min 5mil))
(layer outer)
(condition "A.Type == 'track'"))
(rule "Minimum Trace Spacing (outer layer)"
@CommandLeo
CommandLeo / mods.md
Last active June 28, 2024 21:14
CommandLeo's Mods

CommandLeo's 1.20.2 Mods

Libraries

Icon Mod Mod Page Description
Fabric API Modrinth Library required for a lot of mods
Fabric Language Kotlin Modrinth Library required for Zoomify
MaLiLib Modrinth Library required for Masa's mods
MagicLib Modrinth Library required for MasaGadget
OwoLib Modrinth Library required for Isometric Renders
@nikhiljha
nikhiljha / README.md
Last active June 4, 2024 08:51
Apple Silicon (M1) + MultiMC + Minecraft 1.18 + Native LWJGL

Edit (2024): You no longer need to follow this guide! Just use PrismLauncher.

.

.

.

.

import java.util.*;
public class AdditionUnderXOR {
static final int SS = 1000000;
enum Ore {
COAL(60005),
IRON(60006),
@DragonEggBedrockBreaking
DragonEggBedrockBreaking / main.md
Last active June 13, 2024 17:00
THIS GITHUB GIST HAS MOVED
@LuxXx
LuxXx / bedrock.c
Created August 2, 2020 11:46
2b2t Bedrock Finder by ChromeCrusher
/*
Written by ChromeCrusher for finding bases on 2b2t.org
This program requires you to know a top-level bedrock pattern.
A chunk-aligned 16x16 pattern (a complete chunk) is preferable and is the fastest method, but it can find any smaller pattern too (it just takes longer)
You could technically search for an area larger than 16x16 (up to 48x48), but it will be slower and the chances of finding two identical 16x16 bedrock patterns is basically zero.
An 8x8 pattern is usually enough to uniquely identify a location with a fairly low chance of false positives.
You'll need to know which direction is north. This can be found by looking at the textures of some blocks (cobblestone for example, see http://gaming.stackexchange.com/a/23103)
If you can't find which direction is north, you'll have to search for all 4 rotations of the pattern separately. I did not include a function to do it automatically because I haven't needed it.
@onnowhere
onnowhere / image_to_particles.py
Last active May 8, 2022 11:37
[Image to Particles] Quick tool that generates a function that displays particles for an input image using local coordinates. Drop images in the `images` folder in the same directory as the script. You'll also need to `pip install opencv-python`. Edit generation options at the bottom of the file.
import cv2
import os
class ImageToParticle:
def __init__(self, image_file, resolution=(40, 40), scale=0.25, max_size=5, replace_transparent=[], animation=0, commands=[], show_display=False):
self.image_file = image_file # Source file
self.resolution = resolution # Shrinks image to fit within x,y dimensions without changing aspect ratio (1 pixel = 1 particle)
self.scale = scale # Scale the size of image displayed in game
self.max_size = max_size # Maximum particle size, alpha scales this if replace_transparent is not defined
self.replace_transparent = replace_transparent # RGB value to replace 0 alpha with
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active July 5, 2024 19:06
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.