Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| ## §8 SESSION START PROTOCOL | |
| **Target:** CLI-capable autonomous agents (Claude Code, Cursor, Codex, Devin) | |
| **Scope:** Hub repository (orchestrator, coordination, APIs) | |
| **Version:** 4.0 Streamlined (Core + Just-in-Time Modules) | |
| **Date:** 2025-10-05 | |
| **On session start:** | |
| 1. Read this file (AGENTS.md) completely - contains all constitutional and identity content |
| getGitInfo() | |
| { | |
| checksum=$(git rev-parse --short HEAD 2> /dev/null) | |
| branch=$(git symbolic-ref --short HEAD 2> /dev/null) | |
| if [ ! -z $branch ] && [ ! -z $checksum ]; then | |
| echo -e " ($branch $checksum)" | |
| elif [ ! -z $checksum ]; then | |
| echo -e " ($checksum)" | |
| elif [ ! -z $branch ]; then | |
| echo -e " ($branch)" |
Thanks to React hooks you have now happily turned all your classes into functional components.
Wait, all your components? Not quite. There is one thing that can still only be implemented using classes: Error boundaries.
There is just no functional equivalent for componentDidCatch and deriveStateFromError yet.
| import * as React from 'react'; | |
| import { Component, ComponentClass, createRef, forwardRef, Ref } from 'react'; | |
| const myHoc = <ComposedComponentProps extends {}>( | |
| ComposedComponent: ComponentClass<ComposedComponentProps>, | |
| ) => { | |
| type ComposedComponentInstance = InstanceType<typeof ComposedComponent>; | |
| type WrapperComponentProps = ComposedComponentProps & { | |
| wrapperComponentProp: number; |
| # This demonstrates that, when using async/await, a crash in the task will crash the caller | |
| defmodule Tasker do | |
| def good(message) do | |
| IO.puts message | |
| end | |
| def bad(message) do | |
| IO.puts message | |
| raise "I'm BAD!" | |
| end |
| var Promise = require('bluebird'); | |
| var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n))); | |
| funcs | |
| .each(iterator) // logs: 500, 100, 400, 200 | |
| .then(console.log) // logs: [ [Function], [Function], [Function], [Function] ] | |
| funcs | |
| .mapSeries(iterator) // logs: 500, 100, 400, 200 |
| /*: | |
| ## Phone Words | |
| Generate a collection of words that can be represented by a given phone number. If a phone number contains the digits `1` or `0` then split up the phone number and find the words for each of the substrings as long as each substring has more than one digit. Non-keypad characters can be ignored. Optionally, filter out words so that only dictionary words are present in the result. | |
| ╔═════╦═════╦═════╗ | |
| ║ 1 ║ 2 ║ 3 ║ | |
| ║ ║ abc ║ def ║ | |
| ╠═════╬═════╬═════╣ | |
| ║ 4 ║ 5 ║ 6 ║ |
| public struct Promise<T> { | |
| typealias Fulfiller = (T) -> (Void) | |
| typealias Rejecter = (Void) -> (Void) | |
| typealias Resolver = (_ fulfill: @escaping Fulfiller, _ reject: @escaping Rejecter) -> (Void) | |
| let resolver: Resolver | |
| init(_ resolver: @escaping Resolver){ | |
| self.resolver = resolver | |
| } | |
| func then<U>(_ execute: @escaping ((T) -> U)) -> Promise<U> { | |
| return Promise<U>({(fulfill, reject) in |