Skip to content

Instantly share code, notes, and snippets.

@citrusui
citrusui / ENV.yml
Created February 10, 2024 02:14 — forked from gazzar/ENV.yml
modwave wavetable surface plots pdf generator
name: plots
channels:
- conda-forge
- defaults
dependencies:
- python=3.11.0
- tqdm
- numpy
- matplotlib
- colorcet
@citrusui
citrusui / spinner.pde
Created July 18, 2018 12:20 — forked from marcedwards/spinner.pde
A loading spinner for Processing 3.3.7
// A loading spinner.
// By @marcedwards from @bjango.
void setup() {
size(300, 300, P2D);
frameRate(30);
smooth(8);
noFill();
stroke(255);
strokeWeight(6);
@citrusui
citrusui / colourspinner.pde
Created July 18, 2018 12:20 — forked from marcedwards/colourspinner.pde
A colourful loading spinner for Processing 3.3.7
// A colourful loading spinner.
// By @marcedwards from @bjango.
void setup() {
size(512, 512, P2D);
frameRate(30);
smooth(8);
noFill();
strokeWeight(10);
}
@citrusui
citrusui / index.html
Created June 18, 2018 14:21 — forked from duncangraham/index.html
a svg grid of stunning beauty
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">
<defs>
<pattern id="grid" width="11" height="11" patternUnits="userSpaceOnUse">
<rect fill="white" x="0" y="0" width="9" height="9"/>
<rect fill="aliceblue" x="10" y="0" width="1" height="10"/>
<rect fill="aliceblue" x="0" y="10" width="11" height="1"/>
</pattern>
</defs>
<rect fill="url(#grid)" x="0" y="0" width="100%" height="100%"/>
</svg>
on setDarkMode(shouldBeDark)
set paneID to "com.apple.preference.general"
tell application "System Events"
if dark mode of appearance preferences is shouldBeDark then return
end tell
set paneWasOpen to false
@citrusui
citrusui / Mojave-dynamic-wallpaper-notes.md
Created June 7, 2018 01:25 — forked from ole/Mojave-dynamic-wallpaper-notes.md
Reverse-engineering the dynamic wallpaper file format in macOS Mojave.

The dynamic wallpaper in MacOS Mojave is a single 114 MB .heic file that seems to contain 16 embedded images.

It also contains the following binary plist data in its metadata under the key "Solar". It's an array of 16 items, each with four keys:

@citrusui
citrusui / bios.txt
Last active June 11, 2018 21:46 — forked from lunasorcery/im-gay.txt
Compressed sprite data for the "I'M GAY" gba_bios.bin mod.
24 40 03 00 0F 00 40 01 01 00 01 42 42 43 43 C4
44 05 C4 04 C4 0F C4 02 0A 03 C3 01 0E 0C 08 0D
07 09 06 0B AA AB 48 75 EB B8 9C AA 0F FD 85 FA
4F 57 17 E9 79 E7 49 7C 5F 67 FD 47 FE 9C EE 24
FD ED 5F 46 94 57 7C 66 49 0B 40 84 0F AB 2B FA
57 67 24 DC A1 9F EC FF 2A 3E 54 F1 AD AB 52 C5
BE F2 75 91 82 81 2B D6 D6 8B 80 65 76 F2 3F EC
61 FF 1F 75 59 59 75 FC A2 24 D7 D6 0A 65 3C 11
E3 B3 66 A4 F9 5F 8E FF F9 BA FA 7F 10 A7 92 73
6E 39 4C 21 7F 9C 7F C4 FF AD FC B8 33 AE EE E2
/*
Traverse through all the Text Nodes in a page and force them to display hidden characters
Sources:
Hacker news: https://news.ycombinator.com/item?id=16749422
user: tim333's js fiddle https://jsfiddle.net/tim333/np874wae/13/
medium post: https://medium.com/@umpox/be-careful-what-you-copy-invisibly-inserting-usernames-into-text-with-zero-width-characters-18b4e6f17b66
TODO:
function Note(e) {
this.coord = e
}
function Interval(e) {
this.coord = e
}
function add_addsubtract_func(e) {
return e.add = function(e) {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.