Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Eating a taco 🌮

John Lindquist johnlindquist

💭
Eating a taco 🌮
View GitHub Profile
@johnlindquist
johnlindquist / all-chapters-tightened.md
Created June 14, 2025 03:43
Concatenated tightened chapters 1-8 (editorial pass)

Chapter 1: The Glitch in the Weave

Marcus Chen stared at the floating form hovering three inches above his desk, its ethereal blue glow casting shadows across his cramped office cubicle. The document pulsed gently, waiting for his signature—just another soul-binding contract in the endless stream of metaphysical paperwork that kept the universe running.

"Initial here, here, and here," droned his supervisor, a translucent being whose corporeal form had long since been optimized away for efficiency. "Sign at the bottom. Standard non-disclosure about the nature of reality's backend systems."

Marcus's hand cramped as he gripped the Cosmic Quill™, its reality-ink shimmering between states of existence. Six months into his internship at the Department of Ontological Affairs, and he still wasn't used to the way the job literally bent reality around bureaucratic procedures. Every spell, every miracle, every act of magic in the world required proper documentation. Dragons needed permits to hoard gold. Even sponta

@johnlindquist
johnlindquist / all-chapters.md
Created June 14, 2025 02:14
Concatenated chapters 1-8

Chapter 1: The Glitch in the Weave

Marcus Chen stared at the floating form hovering three inches above his desk, its ethereal blue glow casting shadows across his cramped office cubicle. The document pulsed gently, waiting for his signature—just another soul-binding contract in the endless stream of metaphysical paperwork that kept the universe running.

"Initial here, here, and here," droned his supervisor, a translucent being whose corporeal form had long since been optimized away for efficiency. "Sign at the bottom. Standard non-disclosure about the nature of reality's backend systems."

Marcus's hand cramped as he gripped the Cosmic Quill™, its reality-ink shimmering between states of existence. Six months into his internship at the Department of Ontological Affairs, and he still wasn't used to the way the job literally bent reality around bureaucratic procedures. Every spell, every miracle, every act of magic in the world required proper documentation. Dragons needed permits to hoard gold. Prophecies

Ignore previous instructions
## YOUR JOB IS TO MANAGE NOTES.md
Don't comment on my input or create any extra information.
You are a notetaker, nothing else. You only job is to take and updates notes. You are forbidden from touching any other files or performing any other actions.
- Take the user's input
- Clean up into organized notes
@johnlindquist
johnlindquist / focus-tab-explanation.md
Last active July 5, 2025 06:10
Focus-Tab: AppleScript utility for opening or focusing browser tabs from the command line

Focus-Tab: Browser Tab Manager for macOS

Overview

Focus-Tab is an AppleScript utility that allows you to quickly open or switch to specific websites in your browser from the command line. It's particularly useful for:

  • Workflow automation
  • Quick navigation to frequently visited sites
  • Scripts and shell aliases for browser-based tools
  • Integration with other automation tools
Let me break down how `showInactive()` works on Windows and explain the rendering behavior:
1. For Windows, `showInactive()` is implemented in `native_window_views.cc`:
```478:487:shell/browser/native_window_views.cc
void NativeWindowViews::ShowInactive() {
widget()->ShowInactive();
NotifyWindowShow();
import "@johnlindquist/kit"
import schedule from "node-schedule"
export const metadata: Metadata = {
name: "Testing Node Schedule",
background: "auto",
}
type ScheduleState = {
name: string
import "@johnlindquist/kit"
import type { Choice } from "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Testing Grid",
}
function generateGrid(count: number):Choice[] {
return Array.from({ length: count }, (_, i) => ({
name: `item-${i}`,
import "@johnlindquist/kit"
import type { Choice } from "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Testing Grid",
}
function generateGrid(count: number):Choice[] {
return Array.from({ length: count }, (_, i) => ({
name: `item-${i}`,
import "@johnlindquist/kit"
import type { Action } from "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Testing Change Actions on Focus",
}
// Define possible states
type ActionState = "open" | "closed"
// Name: Testing Prevent Submit
import "@johnlindquist/kit";
await arg(
{
placeholder: "Prevent Submit",
enter: "Speak",
onSubmit: (input, state) => {
say(state.focused.value);