Skip to content

Instantly share code, notes, and snippets.

View Fractal-Tess's full-sized avatar

Fractal-Tess Fractal-Tess

View GitHub Profile

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).

Here are useful slash commands users can run to interact with you:

  • /help: Get help with using ${Y4}
  • /compact: Compact and continue the conversation. This is useful if the conversation is reach
@Fractal-Tess
Fractal-Tess / service-worker.ts
Created July 6, 2023 21:12 — forked from khromov/service-worker.ts
SvelteKit service worker example
/// <reference types="@sveltejs/kit" />
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="webworker" />
// https://kit.svelte.dev/docs/service-workers#type-safety
const sw = self as unknown as ServiceWorkerGlobalScope;
import { build, files, version } from '$service-worker';
@Fractal-Tess
Fractal-Tess / nodemon.json
Created May 24, 2023 21:51
Nodemon for typescript files with ts-node
{
"watch": ["src"],
"ext": "ts",
"exec": "ts-node --esm ./src/main.ts"
}
@Fractal-Tess
Fractal-Tess / setup-zsh.sh
Created May 20, 2023 07:57
Setting up zsh with common features
#!/bin/bash
echo -e "
_________ _ _
|__ / ___|| | | |
/ /\___ \| |_| |
/ /_ ___) | _ |
/____|____/|_| |_|
"
@Fractal-Tess
Fractal-Tess / build.cjs
Last active December 7, 2022 23:51
A build script using esbuild, typescript and es-modules to create a minified bundled output file
const { buildSync } = require('esbuild');
const path = require('node:path');
const original = buildSync({
entryPoints: [path.join(__dirname, __input_file__)],
format: 'esm',
target: 'esnext',
platform: 'node',
bundle: true,