Skip to content

Instantly share code, notes, and snippets.

View Cryptizism's full-sized avatar
:shipit:

Cryptizism

:shipit:
  • Scotland
  • 11:22 (UTC)
View GitHub Profile
@earthbound19
earthbound19 / OklabExperiments.js
Last active June 20, 2024 16:18
rgb <-> oklab to/from convert, color blend through oklab space
// This gist contains JavaScript functions and tests for:
// - conversion from gamma-corrected (or gamma-compressed) sRGB to linear RGB, to Oklab
// - interpolation through Oklab
// - conversion back to linear RGB, then sRGB
// To use these tests, install nodejs, save this file locally, and run with:
// node OklabExperiments.js
// No other dependencies are required to use this.
// Thanks to some helpful folks in the generative art community for helping me better understand what's happening with this.
// My toddler smacked the keyboard with a piece of cardboard and made me accidentally type:
@Cryptizism
Cryptizism / emote-extension-endpoints.MD
Last active November 1, 2023 22:21
Twitch 3rd party extension endpoints

3rd Party Emote Extension Endpoints (AFAIK)

Codenames

  • User ID = Twitch User ID (you can get it here)
  • Username = Twitch User's name
  • Emote ID = ID assigned to an emote (Found in the URL)
  • Global = Can be used in any chat
  • Channel Emote = Emotes that are assigned to a certain chat
  • Emote Size = This will vary from platform to platfrom, the smaller the number the smaller the image.
// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw