Skip to content

Instantly share code, notes, and snippets.

View stevekinney's full-sized avatar

Steve Kinney stevekinney

View GitHub Profile
import chalk from 'chalk';
import getPort, { portNumbers } from 'get-port';
export type TemporalServerOptions = {
/** The port for the Temporal server to listen on.*/
port: number;
/** The port for the Temporal UI to listen on. */
uiPort: number;
/** The port for the Temporal HTTP API to listen on. */
httpPort: number;
@stevekinney
stevekinney / types.d.ts
Created March 20, 2025 10:49
Busy Bee API types as generated by `openapi-typescript`
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/tasks": {
parameters: {
query?: never;
header?: never;
act
avrdude
boost
buf
bun
certstrap
cloc
cocoapods
corepack
deno
body {
background: red;
}
export const processImages = () => {
return {
name: 'markdown-image-optimization',
/**
* @param {object} options
* @param {string} options.content
* @param {string} options.filename
*/
markup: ({ content, filename }) => {
if (!filename.endsWith('.md')) return;
@stevekinney
stevekinney / runes.md
Created February 18, 2024 22:41
A fun little utility that I'm looking forward to using in Svelte 5.

Here is a cool thing we can do in Svelte 5 with Runes. Let's say we make a little utility type like this:

type Holocene<T> = T extends { extends: keyof SvelteHTMLElements }
	? Omit<Partial<SvelteHTMLElements[T['extends']]>, keyof T> & Omit<T, 'extends'>
	: T;

Now, we can pass an extends key to the type we give to the props of a component and it will automatically inherit whatever HTML element we choose.

import {
condition,
defineQuery,
defineSignal,
proxyActivities,
setHandler,
sleep
} from '@temporalio/workflow';
import OrderStatus, { formatStatus } from '../utilities/status';
import { readFile } from 'fs/promises';
import { parse, preprocess, walk } from 'svelte/compiler';
import autoprefixer from 'autoprefixer';
import type { AcceptedPlugin } from 'postcss';
import sveltePreprocess from 'svelte-preprocess';
import tailwind from 'tailwindcss';
import nesting from 'tailwindcss/nesting';
const colors = {
primary: {
'50': '#f0f0fd',
'100': '#e4e4fb',
'200': '#d0cff6',
'300': '#b5b1f0',
'400': '#9e92e7',
'500': '#8d77dd',
'600': '#7f5ecf',
'700': '#6d4db5',