Skip to content

Instantly share code, notes, and snippets.

View TayIorRobinson's full-sized avatar
🦊
they/them

Taylor TayIorRobinson

🦊
they/them
View GitHub Profile
@TayIorRobinson
TayIorRobinson / vappypasta.swift
Created November 27, 2023 22:01
i should not be allowed to use Xccode
import Foundation
import CoreGraphics
import ApplicationServices
func GetCGEventCharacter(evt: CGEvent) -> Character {
var char = UniChar()
var length = 0
evt.keyboardGetUnicodeString(maxStringLength: 1, actualStringLength: &length, unicodeString: &char)
return Character(UnicodeScalar(char)!)
}
@TayIorRobinson
TayIorRobinson / mprls.py
Created October 22, 2023 00:53
MicroPython MPRLS library
# MicroPython library for the Adafruit MPRLS/Honeywell MPR LS module.
# 22/10/2023 - Taylor Robinson (https://robins.one)
# Example:
"""
from machine import I2C, Pin
from mprls import MPRLS
i2c = I2C(id=1,sda=Pin(26),scl=Pin(27))
mprls = MPRLS(i2c)
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://marcan.st/transf/wiisettings/US2/iplsetting.ash/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=marcan.st
// @grant none
// ==/UserScript==
@TayIorRobinson
TayIorRobinson / Program.cs
Last active March 15, 2022 21:15
fuck you, transes your computer
#define THROW_ON_ERROR
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace Blitter {
class Program {
[DllImport("user32.dll", EntryPoint = "GetDC")]
@TayIorRobinson
TayIorRobinson / tuyaha_demo.py
Created January 23, 2022 03:59
Control Tuya light bulb with Python using Tuyaha library
import time
import tuyaha
tuya = tuyaha.TuyaApi()
devices = tuya.init("taylor@example.com", "hunter2", "44", "smart_life", "eu")
lights = list(filter(lambda dev: dev.dev_type == "light", devices))
light = lights[0]
print("Hello, " + light.name() + "!")
print("current brightness: " + str(light.brightness()))
/* ==UserStyle==
@name Old Robux Logo
@description Returns the old Robux logo
@namespace robins.one
@author Taylor Robinson
@version 1.0.0
@preprocessor stylus
==/UserStyle== */
@-moz-document domain("roblox.com") {
@TayIorRobinson
TayIorRobinson / tays-roblox-theme.user.css
Created April 5, 2021 01:42
Taylor's Roblox Theme!
/* ==UserStyle==
@name Taylor's Roblox Theme
@description It's a Roblox theme & it's made by Taylor: It's Taylor's Roblox Theme!
@namespace robins.one
@author Taylor Robinson
@version 2.0.0
@preprocessor stylus
@var color tays-accent-color "Accent Colour" #FF2A2A
@var checkbox tays-font "Use old font" 1
@var checkbox tays-animations "Animations" 1
@TayIorRobinson
TayIorRobinson / chromiumUpdater.js
Last active December 26, 2023 22:37
macOS Chromium Marmaduke build updater
// To use this simply install NodeJS (https://nodejs.org/)
// Then run node chromiumUpdater.js.
// You might want to put it in your crontab.
// Set to true for ASi builds
// Set to false for Intel builds
const APPLE_SILLICON = false
// Ignore No-Sync builds?
const SYNC_ONLY = true
// Show notifications