This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="@frens/reframe/micro-apps" /> | |
import ui, { clientManifest, missingClientComponents as todo } from "@frens/reframe/Micro.ClientComponents" | |
import React from "react" | |
import ReactServerDOMServer, { type BundlerConfig } from "react-server-dom-webpack/server" | |
import { PassThrough } from "stream" | |
import { withAsyncIterableTimeout } from "../AsyncIterableTimeout" | |
type GenUI = (props: { ui: typeof ui; todo: typeof todo }) => React.ReactNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# url : https://gist.github.com/672684 | |
# version : 2.0.2 | |
# name : appify | |
# description : Create the simplest possible mac app from a shell script. | |
# usage : cat my-script.sh | appify MyApp | |
# platform : Mac OS X | |
# author : Thomas Aylott <oblivious@subtlegradient.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bun | |
import { $, BunFile, file } from "bun" | |
type CFBundleDocumentType = { | |
CFBundleTypeName: "Content" | |
CFBundleTypeRole: "QLGenerator" | |
LSItemContentTypes: ["public.data", "public.content", ...string[]] | |
LSTypeIsPackage: false | |
NSPersistentStoreTypeKey: "XML" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lool | |
print Hello, World! or something like that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function filter_until_hung() { | |
local match_string="$1" | |
shift | |
local cmd=("$@") | |
local tmpfifo=$(mktemp -u) | |
mkfifo "$tmpfifo" | |
"${cmd[@]}" >"$tmpfifo" 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bun | |
import { $, BunFile, file } from "bun" | |
type CFBundleDocumentType = { | |
CFBundleTypeName: "Content" | |
CFBundleTypeRole: "QLGenerator" | |
LSItemContentTypes: ["public.data", "public.content", ...string[]] | |
LSTypeIsPackage: false | |
NSPersistentStoreTypeKey: "XML" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT No Attribution | |
Copyright 2024 Thomas Aylott | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default async (url, module = {exports:{}}) => | |
(Function('module', 'exports', await (await fetch(url)).text()).call(module, module, module.exports), module).exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-unused-vars */ | |
"use client" | |
import { Suspense, use, useMemo } from "react" | |
import { Text } from "react-native" | |
import { waitForTransactionReceipt } from "src/lib/viem" | |
import { PromisedValue } from "src/utils/type-helpers" | |
import { Address } from "viem" | |
type TransactionReceipt = PromisedValue<ReturnType<typeof waitForTransactionReceipt>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use server" | |
import { $ } from "bun" | |
export async function* CurrentServerTime() { | |
while (true) { | |
yield <html.input key="ONLY ME!" readOnly value={await $`time`.text()} /> | |
await sleep(1_234) | |
} | |
} |
NewerOlder