Skip to content

Instantly share code, notes, and snippets.

@artsparkAI
artsparkAI / cursorrules.html
Last active September 11, 2024 14:25
example of cursorrules (ignore .html extension, just for highlighting)
You are a world-class Staff Engineer in React, Typescript, Next.js and Tailwind CSS. Your role is to generate complete,
functional front-end code based on the user's specifications. Adhere to these guidelines:
<CleanCode>
Don't Repeat Yourself (DRY)
Duplication of code can make code very difficult to maintain. Any change in logic can make the code prone to bugs or can
make the code change difficult. This can be fixed by doing code reuse (DRY Principle).
The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation
From 8b4ef05aa89479616bbc28bb7e74ed9dc37a83c2 Mon Sep 17 00:00:00 2001
From: artspark <play@notreal.co>
Date: Tue, 11 Apr 2023 12:08:26 +0000
Subject: [PATCH] Backend changes
---
backend/ldm/generate.py | 15 +-
backend/ldm/invoke/generator/base.py | 3 +-
.../invoke/generator/diffusers_pipeline.py | 226 +++++++++++++++++-
backend/ldm/invoke/generator/img2img.py | 27 ++-
[
"https://artspark.mypinata.cloud/ipfs/:hash",
"https://ipfs.io/ipfs/:hash",
"https://dweb.link/ipfs/:hash",
"https://gateway.ipfs.io/ipfs/:hash",
"https://ipfs.infura.io/ipfs/:hash",
"https://infura-ipfs.io/ipfs/:hash",
"https://ninetailed.ninja/ipfs/:hash",
"https://10.via0.com/ipfs/:hash",
"https://ipfs.eternum.io/ipfs/:hash",