This file contains hidden or 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
| import Foundation | |
| // Load the private framework | |
| guard let handle = dlopen("/System/Library/PrivateFrameworks/UniversalAccess.framework/UniversalAccess", RTLD_NOW) else { | |
| fatalError("Unable to load UniversalAccess framework") | |
| } | |
| defer { | |
| dlclose(handle) | |
| } |
This file contains hidden or 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
| -- minimal vim | |
| -- | |
| -- it's pure vim, with plugins for things that I wish were defaults: | |
| -- - mini.files for an editable :Ex file explorer | |
| -- - quicker for an editable quickfixlist (bonus: prettier) | |
| -- - mini.diff+mini.git for displaying git diff hunks | |
| -- +----------+ | |
| -- | PACKAGES | | |
| -- +----------+ |
This file contains hidden or 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
| import cluster from "node:cluster"; | |
| import { availableParallelism } from "node:os"; | |
| export async function clustered({ | |
| numWorkers = availableParallelism(), | |
| primary, | |
| worker, | |
| recoverWorkers = true, | |
| shutdownPrimary, | |
| }: { |
This file contains hidden or 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
| // ask_receiver.pde | |
| // -*- mode: C++ -*- | |
| #include <RH_ASK.h> | |
| #ifdef RH_HAVE_HARDWARE_SPI | |
| #include <SPI.h> // Not actually used but needed to compile | |
| #endif | |
| #include <Adafruit_NeoPixel.h> | |
| #ifdef __AVR__ | |
| #include <avr/power.h> |