Skip to content

Instantly share code, notes, and snippets.

View luphoria's full-sized avatar
🍞
LIVING IS EASY WITH EYES CLOSED

Trent luphoria

🍞
LIVING IS EASY WITH EYES CLOSED
View GitHub Profile
@arseniiv
arseniiv / edo_confluence.py
Created December 27, 2023 18:59
List intervals in various edo/edX scales that are close to each other
from collections import defaultdict
from dataclasses import dataclass
from fractions import Fraction
from itertools import pairwise
from typing import Final, Sequence
@dataclass
class EdIntervals:
ed_fractions: list[Fraction]
sources: dict[Fraction, list[int]]
@frontdevops
frontdevops / darkthemeswitcher-inline.js
Last active May 28, 2025 21:22
Simple Dark Theme Bookmarklet for web pages
javascript:(d=>{var css=`:root{background-color:#fefefe;filter:invert(100%)}*{background-color:inherit}img:not([src*=".svg"]),video{filter: invert(100%)}`,style,id="dark-theme-snippet",ee=d.getElementById(id);if(null!=ee)ee.parentNode.removeChild(ee);else {style = d.createElement('style');style.type="text/css";style.id=id;if(style.styleSheet)style.styleSheet.cssText=css;else style.appendChild(d.createTextNode(css));(d.head||d.querySelector('head')).appendChild(style)}})(document)