Skip to content

Instantly share code, notes, and snippets.

@emcmanus
emcmanus / .well-known-ai-plugin.json.csv
Created December 16, 2025 00:25
"Well Known" AI Endpoint Adoption - Scan of top 1m domains
rank final_url
321 https://slack.com/.well-known/ai-plugin.json
828 https://www.welt.de/.well-known/ai-plugin.json
1015 https://www.redfin.com/.well-known/ai-plugin.json
1114 https://www.coursera.org/.well-known/ai-plugin.json
2116 https://coinmarketcap.com/.well-known/ai-plugin.json
2608 https://www.etoro.com/.well-known/ai-plugin.json
2826 https://www.instacart.com/.well-known/ai-plugin.json
2918 https://zapier.com/.well-known/ai-plugin.json
3011 https://www.trip.com/.well-known/ai-plugin.json
@emcmanus
emcmanus / package.json
Last active October 12, 2025 20:44
ChatGPT App SDK – Minimal React Application (single-file)
{
"name": "demo-mcp",
"version": "1.0.0",
"description": "A simple ChatGPT React app.",
"main": "index.js",
"scripts": {
"start": "tsx watch server.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"packageManager": "pnpm@10.18.1",
@emcmanus
emcmanus / phoenix_channel.py
Last active July 31, 2024 09:50
Minimal python client for Phoenix Channels
# Copyright 2024 Ed McManus
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
@emcmanus
emcmanus / LLM.md
Created April 3, 2023 21:38 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

Magic Wordle Words

The Best First-Guess in Wordle

Total character hints for each first guess (across the set of all possible answers):

  1. arose 24,791 hints
  2. soare 24,791
  3. aeros 24,791
  4. serai 24,469
@emcmanus
emcmanus / snakeToCamelCase.js
Last active May 31, 2025 09:32 — forked from felixjung/snakeToCamelCase.js
ES6 module to recursively convert snake case keys in an object to camel case using lodash.
'use strict';
/**
* @example
* import keysToCamelCase from './snakeToCamelCase';
* keysToCamelCase({bad_key: 1}); => {badKey: 1}
* keysToCamelCase([{bad_key: 1}]); => [{badKey: 1}]
*/
function keysToCamelCase(object) {
@emcmanus
emcmanus / NSDate+TimeAgoInWords.swift
Created October 3, 2014 22:00
A Swift port of Rails' time_ago_in_words.
//
// NSDate+TimeAgoInWords.swift
//
// A Swift port of Rails' time_ago_in_words.
// Created by Ed McManus for Yardsale on 9/30/14.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@emcmanus
emcmanus / gist:6065901
Created July 23, 2013 20:31
Parse.Promise Edge Cases
try
Parse.Promise.as().then( ->
Parse.Promise.as 1, 2, 3
).then((a, b, c) ->
# a, b, and c all have values
console.error "1. a: #{a}, b: #{b}, c: #{c}"
)
# Can we transform Parse.Promise.error into a success?
Parse.Promise.error().then( null, (error) ->
@emcmanus
emcmanus / gist:5630504
Created May 22, 2013 20:08
Clean whitespace from objective-c source.
find . -name "*.[hm]" -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*\$//"
@emcmanus
emcmanus / PFObject+YSComparison.h
Last active December 12, 2015 01:59
Objective-C isEqual implementation for Parse objects (PFObject, PFFile, and PFRelation)
//
// PFObject+YSComparison.h
//
// Created by Ed McManus for Yardsale Inc. on 2/1/13
// Learn more at https://getyardsale.com
//
// Requires BlocksKit https://github.com/pandamonia/BlocksKit
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal