Skip to content

Instantly share code, notes, and snippets.

View remy's full-sized avatar
🐹
Always hacking

Remy Sharp remy

🐹
Always hacking
View GitHub Profile
enum ACCOUNT_STATE {
ACTIVE
CLOSED
PENDING
SUSPENDED
}
scalar AWSDateTime
scalar AWSEmail
@remy
remy / spotify-rewrite.js
Last active February 3, 2024 11:30
Modifies Spotify to remove episodes, audiobooks, podcasts and shows.
rewriteFetch([
{
url: "/pathfinder/v1/query",
query: /operationName=home&/,
modify: {
json(data) {
const block = ["episodes", "audiobooks", "podcasts", "shows"];
data.data.home.sectionContainer.sections.items =
data.data.home.sectionContainer.sections.items.filter((res) => {
if (!res.data.title) return true;
from machine import I2S, I2C, Pin, SPI
from ssd1306 import SSD1306_I2C
import array
import math
import time
import sdcard
import os
import struct
import rp2
@remy
remy / crud-removal.css
Last active August 21, 2023 14:46
A user style sheet to remove crud from twitter
/* ==UserStyle==
@name twitter.com - 24/07/2023, 22:01:46
@namespace github.com/openstyles/stylus
@version 1.0.1
@description Remove all the crud from twitter
@author Remy Sharp
==/UserStyle== */
@-moz-document domain("twitter.com") {
h1 a[aria-label="Twitter"] svg, /* stupid new logo */
#include <notes.h>
#include <rtttl.h>
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#define DEBOUNCE_LENGTH 2
uint16_t counter[] = {-1,-1,-1,-1}; // -1 because we'll boot up and inc the counter
//int last = LOW;
@remy
remy / Makefile
Last active September 19, 2022 10:02
PlayerSprite.c:26: error 141: two or more data types in declaration for 'type_specifier_qualifier declaration_specifiers - skipped'
all:
/opt/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j -c -o main.o main.c
/opt/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j -o main.gb main.o
@remy
remy / Tiles.c
Last active January 29, 2022 11:36
/*
TILES.C
Tile Source File.
Info:
Form : All tiles as one unit.
Format : Gameboy 4 color.
Compression : None.
@remy
remy / fixed-point.js
Created July 20, 2021 18:04
The int16 is to keep the bytes in the data type and not slip into 32bit
const scale = 8;
const d2f = (x) => Uint16Array.of(x * (1 << scale));
const f2d = (x) => Int16Array.of(x)[0] / (1 << scale);
const mul = (x, y) => Uint16Array.of(((x[0] >> 4) * (y[0] >> 2)) >> 2);
const a = d2f(-5); // ?
f2d(a) // ?
const b = d2f(0.8) // ?
f2d(b) // ?
~~~€[ The Matrix Drinking Game ]3~~~
Take One Drink When:
- Neo asks a question
- Someone says "The Matrix"
- They do a slow-motion, rotating scene
- Someone dodges bullets
- Morpheus says "real"
- A phone call is made