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
// Menu: Chrome Bookmarks
// Description: Select and open a bookmark from Chrome
// Author: John Lindquist
// Twitter: @johnlindquist
let bookmarks = await readFile(
home(
"Library/Application Support/Google/Chrome/Default/Bookmarks"
)
)
// Menu: Open Chrome Tab
// Description: List all Chrome tabs. Then switch to that tab
// Author: John Lindquist
// Twitter: @johnlindquist
let { getTabs, focusTab } = await kit("chrome")
let currentTabs = await getTabs()
let bookmarks = await readFile(
// Menu: Open Chrome Tab
// Description: List all Chrome tabs. Then switch to that tab
// Author: John Lindquist
// Twitter: @johnlindquist
let { getTabs, focusTab } = await kit("chrome")
let currentTabs = await getTabs()
let bookmarks = await readFile(
// Name: JXA Chrome Tabs
import "@johnlindquist/kit"
// Name: Get Active Chrome Tab
import "@johnlindquist/kit"
let jxa = await npm("@jxa/run")
@johnlindquist
johnlindquist / index.html
Last active February 11, 2024 23:12
Angular 2 Bundled
We couldn’t find that file to show.
@johnlindquist
johnlindquist / README.md
Created March 18, 2016 05:01
uh, is this too big?

Angular2 Starter Plunker - Typescript - Beta 10

A todo example with @ngrx/store and store-saga

// Menu: Notify Demo
let notifier = notify({
title: "Notifications",
message: "Write a reply?",
reply: true,
})
notifier.on("replied", async (obj, options, metadata) => {
await arg(metadata.activationValue)
})
import "@johnlindquist/kit"
// prefer using the full path
let qalc = `/opt/homebrew/bin/qalc`
let currentValue = ""
await arg(
{
placeholder: "Qalculate",
enter: "Copy Result to Clipboard",
// Name: Bookmarks
// Trigger: bm
// Shortcut: opt b
import "@johnlindquist/kit"
let bookmarks = await readFile(kenvPath("bookmarks.txt"), "utf8")
let choices = bookmarks
.split("\n")
// Name: Widget Info
import "@johnlindquist/kit"
// converting video
let fullPath = await drop()
let css = `
h1{