Run Claude in an isolated Vercel Sandbox with full git access.
It uses the sandbox ID (sbx_asdfasdfasdf) as the branch name, so it's safe to push and then you can get your changes by pulling them from that branch
Test permissions are set up properly
| /* eslint-disable no-unused-vars */ | |
| /* eslint-disable no-else-return */ | |
| // JSX constructor, similar to createElement() | |
| export const h = (type, props, ...children) => { | |
| return { | |
| type, | |
| // Props will be an object for components and DOM nodes, but a string for | |
| // text nodes | |
| props, |
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
| export type Cancel = void | ((k: (r: void) => void) => void) | |
| export const runCancel = (c: Cancel, k: (r: void) => void): void => | |
| c ? c(k) : k() | |
| export type Fx<H, A> = (handler: H, k: (a: A) => void) => Cancel | |
| export type Pure<A> = Fx<{}, A> | |
| export const handle = <H0, H1, A>(fx: Fx<H0 & H1, A>, h1: H1): Fx<H0, A> => | |
| (h0, k) => fx({ ...h0, ...h1 } as H0 & H1, k) |
| { | |
| "lerna": "2.11.0", | |
| "version": "independent", | |
| "npmClient": "yarn", | |
| "useWorkspaces": true, | |
| "command": { | |
| "publish": { | |
| "allowBranch": "master" | |
| } | |
| } |
| [alias] | |
| aliases = config --get-regexp '^alias\\.' | |
| br = branch | |
| branch-name = rev-parse --abbrev-ref HEAD | |
| ci = commit -m | |
| cm = !git add -A && git commit -m | |
| co = checkout | |
| cb = rev-parse --abbrev-ref HEAD | |
| cob = checkout -b | |
| cl = checkout - |
| CATEGORY THEORY FOR PROGRAMMERS | |
| Category Theory 1.1: Motivation and Philosophy | |
| https://www.youtube.com/watch?v=I8LbkfSSR58&index=1&list=PLbgaMIhjbmEnaH_LTkxLI7FMa2HsnawM_ | |
| Composability, Abstraction, Reusability | |
| Category Theory is a higher-level language. | |
| Not a practical, executable language. |
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))