I hereby claim:
- I am gartz on github.
- I am gartz (https://keybase.io/gartz) on keybase.
- I have a public key ASA6-4vXcNkCOBAE7LV01HqVZvbdD1avB5DCexzlLSylnwo
To claim this, I am signing this object:
| import { Client, type ClientOptions } from "jsr:@db/postgres"; | |
| import type { Row } from "@rocicorp/zero/zql/mutate/custom"; | |
| /** | |
| * Adapter for Zero's connectionProvider. Provides .unsafe and .begin methods as required. | |
| */ | |
| export function createZeroPgAdapter(connection: string | ClientOptions = {}) { | |
| const client = new Client(connection); | |
| let connected = false; |
| /** | |
| * Will deep freeze any object recursively. And it supports circular references. | |
| */ | |
| function deepCloneAndFreeze(arg) { | |
| const circularFrozenRefMap = new WeakMap(); | |
| function deepCloneAndNativeFreeze(arg) { | |
| const clone = Array.isArray(arg) ? [] : {}; | |
| circularFrozenRefMap.set(arg, clone); | |
| const isObject = input => typeof input === 'object'; |
I hereby claim:
To claim this, I am signing this object:
| const optionalCloseTags = ['link', 'meta', 'br']; | |
| const serializeAttributes = (attributes) => Object.entries(attributes).map(([key, value]) => { | |
| if (typeof value === 'boolean') { | |
| return value ? key : ''; | |
| } | |
| return `${key}="${value}"` | |
| }).join(' '); | |
| const html = (strList, ...args) => strList.reduce( |
| #!/bin/bash | |
| declare -a keepTrying=("Yesterday you said tomorrow" | |
| "Don't let your dreams be dreams" | |
| "And you're not going to stop there" | |
| "No, what are you waiting for?") | |
| declare -a youDidIt=("You should get to the point where anyone else would quit" | |
| "Make your dreams come true" | |
| "Nothing is impossible" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Hello World</title> | |
| <script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| </head> | |
| <body> | |
| <div id="root"></div> |
| /** | |
| * Copyright 2014-present, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| * | |
| */ |
| /* | |
| // Begin with: | |
| delete Function.prototype.bind; | |
| function bind(/* ... */){ | |
| /* ... */ | |
| } | |
| // Ends with: | |
| Function.prototype.bind = bind; |