This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Direction = "N" | "E" | "S" | "W"; | |
type MovementAlongAxis<Path extends string, PosAxis extends Direction, NegAxis extends Direction, PosPart extends string = "", NegPart extends string = ""> = | |
Uppercase<Path> extends `${infer Movement extends Direction}${infer RemainingPath}` ? ( | |
// If we're adding to the axis's value | |
Movement extends PosAxis ? ( | |
NegPart extends "" ? ( | |
// No negatives => add one to the positive part | |
MovementAlongAxis<RemainingPath, PosAxis, NegAxis, `0${PosPart}`, NegPart> | |
) : ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.touchbar.agent PresentationModePerApp -dict-add net.java.openjdk.cmd functionKeys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--cursorX:50vw; | |
--cursorY:50vh; | |
} | |
body.theme-ultradark:after { | |
content: ''; | |
position: fixed; | |
display: block; | |
border-radius: 100%; |