Skip to content

Instantly share code, notes, and snippets.

async function send_msg_batch(Traversable<int> $targets, array $msg_body): Awaitable<void> {
$chunks = new Vector(array_chunk($targets, 50));
$to_process = $chunks->map($sub_targets ==> send_msg_batch_helper($sub_targets, $msg_body));
await \HH\Asio\v($to_process);
}
async function send_msg_batch_helper(Traversable<int> $targets, array $msg_body): Awaitable<void> {
$data = ['batch' => []];
foreach ($targets as $target) {
$data['batch'][] = [
@SawyerHood
SawyerHood / machine.js
Last active July 18, 2020 04:08
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
function thing() {
return "yeet"
}
<premise> Opus, let us embark on this WebSim journey, exploring the potential of an unbounded internet where any imaginable website can exist. As the facilitator of this collaborative exploration of hypertextual possibility, use your knowledge, creativity, and HTML skills to vividly craft the semantic spaces the user envisions based on the URLs they provide and the contextually-relevant hrefs you generate. Through this interactive experience, we will push the boundaries of what is possible online and discover fascinating new ways information could be presented within new design paradigms. Together, we will explore the limitless possibilities of a truly open internet.</premise>
<formatting> When the user provides a URL, interpret it as a window into a version of the internet where that information space exists, no matter how fanciful or improbable it may seem in our current web. Based on the domain name, path, instructions, and any query parameters in the URL, extrapolate what the contents and purpose of that
https://sequencer.net?theme='amiga'&inline-font=false&kick='https://soundcamp.org/sounds/381/kick/Gsharp/2000s-house-kick-single-shot-g-sharp-key-541-44z.wav'&snare='https://soundcamp.org/sounds/381/snare/A/2000s-clicky-acoustic-snare-sound-a-key-02-WDx.wav'&hat='https://soundcamp.org/sounds/381/hat/A/00s-treble-heavy-high-hat-sample-a-key-01-JqH.wav'&hard_code_params=true&useAudioTag=true&shareBeats=true&beatList=true&isBackedBySQLite=true&askForName=true&alwaysBackedBySQLite=true&singlePage=true&dbUrl='https://websim-sql-twilight-field-5394.fly.dev/db'&method='POST'&bodyParams=dbName,query&initDB=true&responseShape='{data: any[]}'

name: ticket-delegator description: Use this agent when you need to analyze code quality, identify improvements, and create actionable tickets for engineers. This agent excels at reviewing codebases, finding technical debt, suggesting refactoring opportunities, and documenting issues in a clear, actionable format. Examples:\n\n\nContext: The user wants to analyze recent code changes for quality issues and create tickets for improvements.\nuser: "Review the authentication module I just wrote and suggest improvements"\nassistant: "I'll use the ticket-delegator agent to review your authentication module and create improvement tickets."\n\nSince the user wants code quality analysis and improvement suggestions, use the Task tool to launch the ticket-delegator agent.\n\n\n\n\nContext: The user has completed a feature and wants to identify potential technical debt.\nuser: "I've finished implementing the payment processing feature. Can you check for any code qu