Skip to content

Instantly share code, notes, and snippets.

View jalehman's full-sized avatar

Josh Lehman jalehman

View GitHub Profile
@intellectronica
intellectronica / codex.md
Created November 3, 2025 21:32
Claude Code /command to run Codex CLI - Great for complex planning and analysis
allowed-tools description argument-hint model
Bash(/opt/homebrew/bin/codex *)
Run codex with GPT-5-high
your prompt text
haiku

Run the following command exactly. Don't modify it in any way.

@steipete
steipete / mcp_call.py
Last active November 26, 2025 10:20
Use MCPs via CLI commands. Enable agents to add/remove/load MCPs on demand, progressive disclosure. No more context cluttering.
#!/usr/bin/env python3
"""MCP helper CLI using definitions from config/mcp_servers.json.
This script powers the `pnpm mcp:*` helpers. Typical invocations:
pnpm mcp:list
pnpm mcp:list chrome-devtools --schema
pnpm mcp:call playwright.browser_tabs action=list
pnpm mcp:call chrome-devtools.evaluate_script --args '{"function":"() => document.title"}'
pnpm mcp:call context7.get_library_docs topic=hooks tokens=1500
(ns switch
(:require [clojure.pprint :as pprint]))
(defn project-clj-map [filename]
(->> (slurp filename)
(read-string)
(drop 1)
(partition 2)
(map vec)
(into {})))
with
dau as (
-- This part of the query can be pretty much anything.
-- The only requirement is that it have three columns:
-- dt, user_id, inc_amt
-- Where dt is a date and user_id is some unique identifier for a user.
-- Each dt-user_id pair should be unique in this table.
-- inc_amt represents the amount of value that this user created on dt.
-- The most common case is
-- inc_amt = incremental revenue from the user on dt
@auramo
auramo / figwheel-emacs-cider.txt
Created August 6, 2015 12:35
figwheel emacs cider stuff
## Using Emacs CIDER as the Figwheel REPL tool
project.clj should have this line:
```
:figwheel { :nrepl-port 7888 }
```
At the defproject-level.
It enables external tools to connect to the Figwheel REPL. To connect
@gfosco
gfosco / gist:131974d200c5e9fc6c94
Last active April 5, 2022 22:10
parse-jobqueue

README.md:

parse-jobqueue

The Parse Cloud Code job queue. Define, queue, and process work on a constant basis.

USAGE

First, you'll want to define some jobs:

@swannodette
swannodette / om_data.cljs
Last active January 9, 2021 16:09
Om + DataScript
(ns om-data.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[datascript :as d]))
(enable-console-print!)
(def schema {})
(def conn (d/create-conn schema))