Skip to content

Instantly share code, notes, and snippets.

View jaawerth's full-sized avatar

Jesse Wertheim jaawerth

View GitHub Profile
@jaawerth
jaawerth / init.lua
Created October 7, 2022 16:39 — forked from emjayoh/init.lua
Hammerspoon - kitty terminal + dropdown visor (Guake)
hs.hotkey.bind({}, "F15", function()
local app = hs.application.get("kitty")
if app then
if not app:mainWindow() then
app:selectMenuItem({"kitty", "New OS window"})
elseif app:isFrontmost() then
app:hide()
else
app:activate()
Week: 1
Date: 01/09/2022
Artist: Mdou Moctar
Album: Afrique Victimee
Week: 1
Date: 01/09/2022
Artist: Madlib
Album: Sound Ancestors
@jaawerth
jaawerth / desc.md
Last active April 26, 2024 10:44
No Fun Tuesdays (replace En Eff Tee with random dictionary words)

Non-Funkadelic Toasters userscript

Because sometimes I don't want to see the word "Necromancy's Fiscal Tecumseh's."

Nonintervention Feline Targets-replacer

Not properly documenting this, but if you wanna use it...

I may or may not eventually get around to properly packaging this as a shareable userscript or extension, complete with preloaded replacement words and such, so to use it:

MJ Rank Artist Album Composite? (player ratings)
14 Tony Allen and Hugh Masekela Rejoice 9.666666667
8 Run the Jewels RTJ4 8.666666667
17 Laura Marling Song for Our Daughter 8.5
19 Sault Untitled (Black Is) 8
27 Stephen Malkmus Traditional Techniques 8.026666667
26 Khruanghbin Mordechai 8
6 Cornershop England is a Garden 8.0125
12 Idles Ultra Mono 9.005
20 Nubya Garcia Source 8
WeekDateArtistAlbum
1Jan 9, 2022Mdou MoctarAfrique Victimee
1Jan 9, 2022MadlibSound Ancestors
1Jan 9, 2022The CoralCoral Island
2January 16, 2022Illuminati HottiesLet Me Do One More
2January 16, 2022Indigo De SouzaAny Shape You Take
2January 16, 2022Nick Cave and Warren EllisCarnage
3January 23, 2022Little SimzSometimes I Might Be an Introvert
3January 23, 2022Arlo ParksCollapsed In Sunbeams
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
"Week","Date","Rating","Album","Artist","Note"
"1","Jan 9, 2022","8","Afrique Victimee","Mdou Moctar","This one surprisedm e and I think I'll likely keep it in rotation a while!"
"1","Jan 9, 2022","7","Sound Ancestors","Madlib","Less of a surprise, but I enjoyed it and it's still in rotation - pretty sure it'll still grow on me"
"1","Jan 9, 2022","5","Coral Island","The Coral","Had their moments but it felt like they were trying to hard to cosplay as,
like, [Donovan](https://en.wikipedia.org/wiki/Donovan)."
"2","January 16, 2022","?? (need to go back and look).","Let Me Do One More","Illuminati Hotties","Not my usual, but I'll take it! Upbeat."
"2","January 16, 2022","?? (need to go look)","Any Shape You Take","Indigo De Souza","TBH this didn't make a huge impression on me??? Other people seemed to love it."
"2","January 16, 2022","6 I think?","Carnage","Nick Cave and Warren Ellis","Nick Cave's spoken word thing is weird but after a couple albums it might be growing on me. I dunno,
we'll see if I continue
# vim: ft=recfile
%rec: music_challenge_2022
Week: 1
Date: Jan 9, 2022
Artist: Mdou Moctar
Album: Afrique Victimee
Note: This one surprisedm e and I think I'll likely keep it in rotation a while!
Rating: 8
@jaawerth
jaawerth / 0_zalgo.md
Last active April 11, 2024 02:49
Yep, now we're compiling to cursed fennel, THEN evaluating to lua. You don't even want to see the Lua, really.

zalgo.fnl

  1. Like many Lisps, Fennel is extremely permissive about what it considers to be valid identifiers in code so long as delimiters like ()[]{} are properly respected and known identifiers/symbols (builtin macros/special forms, known functions, etc) are left alone.
  2. And by anything, I do mean anything.
  3. Zalgo-text generators have been pretty popular lately; they more or less just dump patterns of garbage unicode codepoints between the actual characters in strings until computers can no longer properly render it. It's pretty funny; sometimes it will look different in different contexts even in the same application on the same machine.
  4. So why the hell not, let's have Fennel compile itself to zalgo.

zalgo fnl

What?

(local identity #$)
(local second #$2)
(local always-nil #nil)
(fn int? [v] (and (= :number (type v)) (= v (math.floor v))))
(fn assert-int [v ?msg ?lvl]
(if (int? v) v
(error (or ?msg (.. "expected value '" (tostring v) "' to be a number"))
(or ?lvl 2))))
@jaawerth
jaawerth / 01_zalgo.fnl
Last active January 13, 2022 02:49
Yes, this actually will compile and run.
(fn a̶̙͖̱̩͐͐ẅ̵̛̬̯͔̹̻̙́̎̉̆̇͒͗̄̌̑̒̆͝͝-̸̖̲̗̖͚̅̅̋̽́̍͛̅̅͗̈́͘̕͠͝y̸̢̯̳̫̼͓̿̍͐̈́͊̀̃ͅį̴͕̙͕̤̯̦͈̠̹̲̲͇͛̈́͜s̶̨͙̞̺͎̲͍̗͖̓̀̾́͂̊́̕̕͘ṡ̸̢͙̤̥̻̲̰̖͈̖͙̌̎̓̈́̌̆̆̌͊͌̕͝ []
(print "W̶̡͇͎̖͙̞̬̬͔͖̞͎̼̒͗́̂̾̍͘͜͠͝h̸̨̫̖̜͉͓̼̻͉̽̔y̵̮̩̒͑̈́̈́͠ ̷̢̰̣͇̮̣̤͓̫͊̌̽̔͂̅̍͗̈̆̌̎ͅy̶͇͚͚̰̋̊͐̑̍͋̆̊́ę̷̠̗̩̬̲̘̩͐̈́̎̀͠ş̴̢͍͖͙͔̬̙͓̥̭͎̗͊̆͂̀,̴̡̡͖̫͙̂͗̓̎͆̎̈́͐̈́́̿̔͛̚̚ ̸̡̛̹̘̈̔̕F̸̗͚̀̀͑̈́͋̇̿͗̀͑́è̵͓͖͓̣̗̦̫͕͎͓̦̲̫̪̲͒̄̔͒̄̓̕͠ñ̵̡̰͈͖̝̜̣̞͙̣̋̆͆͌̏̀̚͜͝n̴͙̼̞̗̯̪̈́̀̄̏̀̈́͛̂ē̸̺͎̥̱̈́̒̐̈́́͑͆͊͝ļ̷̤̫̤̼̟͇̘͚̎̅̌̚ ̸̡̢̻̦̦̰̥̺͓̰̞̘̮̠̣͊͂̔̈́̉͝Ḑ̷̨͕͎̬̫̫̏̏́̒̄͜ͅO̷̧͚̠̮̜̜͔̫̮̣͂̀͜Ȅ̴̢̛̪̥̮͔̣̝̏̀̊͌Ș̸͙̔̐̓͐̓̋̃̈͒͂͑͒͐͠ ̴̡̰̠͍̘̥͔̺͖̤̯̺̘̼̀̃̉̔͋̔̒̈́͋͑͝ͅs̸̢̬̮̓͒̅̏͊͋̈́̕̕̚̕ư̷̡̧̛͔̫̭̘͉̬̹̮̠̻̘̥͌̈́͗̆͆̑̌͋̓̃̚̚p̸͇͈̟͂̃̇̓̚͠ͅp̷̛͙̎̅͛̑̄́̀͊̀̈́̈́̕͘͠ȏ̶̧͇̪̖̺̝̻̱͌̀̿̃͗̏̿͂̐͋͂̓̚͠ͅr̵̘͍̙̿̏̀t̷̢̩̖͕̻̼̬͚̟̼̤̔̿̈́͌̐̄̋͛͌͗̕͜͜ͅ ̶̮͓̙̬̥̣̠̭̗͓͕͙̭͆͜Z̸̥̮̙̙̞̙̜̓͜͠ͅa̵̻͇̳̻̭̹̣̞͓͓̞̟͕̝͌̈̉̈́̀͗̋́͌̃̀̏̆̔͝l̴͚̬̳͐̍̔̂̋̾͌̒̉̄̀͝g̷̢̦̤̟̺͔̬͚̒̇͛̀̏͗̒̀͊̊̈́̽͠͠o̵̡̠͕̘͔͇̦̐̂̎̀͋ ̸̧̢̗͖̤̙̳̝̝̫̘̞͇̫̉̀̾͌̍͘t̸̰͉̉̉͐͛̓̎̉̕ȅ̶̮̤̜̤͙̭̪̜̳̒͠x̸̩̠͎̬͈̥̰̦̋͆̈́͛͌̋̋́̓̆̓̑͝t̷̖͍̙̥̭͔̬̻̓̿̇̀ ̶̢͔̮͓͍̹̯̦̙̜̙͇͆̑͋͌̿̀̂̏ͅa̴͚̯̪̞̙̐̊̈́̓̎s̷̡̢̜͖̦͖͚̼͉̍́͆͌̂͒̋̓̌̕͠ ̵̨̟̱͒̑͒͋̄͑̈́͒̓͌͌͘a̷̢̰͎̤̝̪̣̭̔̅͐̽̒͊̑͌̉̊̈̚̚̕͝ ̷̦̳̗̮̪̲̭͂̉͗̓͆͜ͅv̸̧̱̗̗̰̙̈̋͒̓̈́̉̕͝a̵̡̞̙͙̹̠͑̐͆̍͌͗͊̚͝l̸͊͂́̒̃̋