Skip to content

Instantly share code, notes, and snippets.

@sastan
sastan / $layout.svelte
Created April 14, 2021 20:56
sveltekit + urql (minimal version)
<script context="module">
import { get, readable } from 'svelte/store'
import { createClient, operationStore } from '@urql/svelte'
import { browser, dev } from '$app/env'
/**
* @type {import('@sveltejs/kit').Load}
*/
@alanzchen
alanzchen / popclip-chatgpt.js
Last active July 30, 2025 23:45
PopClip Actions using ChatGPT.
// #popclip extension for ChatGPT
// name: ChatGPT Quick Actions
// icon: iconify:logos:openai-icon
// language: javascript
// module: true
// entitlements: [network]
// options: [{
// identifier: apikey, label: API Key, type: string,
// description: 'Obtain API key from https://platform.openai.com/account/api-keys'
// }]
@vitaly-t
vitaly-t / retry-async.ts
Last active May 20, 2025 15:20
retry-async
/**
* Retry-status object type, for use with RetryCB.
*/
export type RetryStatus<D = unknown> = {
/**
* Retry index, starting from 0.
*/
readonly index: number,
/**