This file contains hidden or 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
{ | |
"customModes": [ | |
{ | |
"slug": "sparc", | |
"name": "⚡️ SPARC Orchestrator", | |
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.", | |
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded |
This file contains hidden or 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
import os | |
import sys | |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1" | |
os.environ['GRADIO_ANALYTICS_ENABLED'] = '0' | |
sys.path.insert(0, os.getcwd()) | |
sys.path.append(os.path.join(os.path.dirname(__file__), 'sd-scripts')) | |
import subprocess | |
import gradio as gr | |
from PIL import Image | |
import torch |
This file contains hidden or 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
@echo off | |
setlocal enabledelayedexpansion | |
:: Initialize counter | |
set COUNT=0 | |
:: Directly parse the output of `py -0p` to get versions and their paths | |
for /f "tokens=1,*" %%a in ('py -0p') do ( | |
:: Filter lines that start with a dash, indicating a Python version, and capture the path | |
echo %%a | findstr /R "^[ ]*-" > nul && ( |
This file contains hidden or 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
import subprocess | |
import time | |
from tqdm import tqdm | |
from colorama import init, Fore, Back, Style | |
init(autoreset=True) | |
def put_computer_to_sleep(): | |
command = '%windir%\\System32\\rundll32.exe powrprof.dll SetSuspendState 0,1,0' | |
subprocess.run(command, shell=True) |
This file contains hidden or 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
// by davey whyte aka @beesandbombs | |
void setup(){ | |
size(600,520,P3D); | |
colorMode(HSB,1); | |
noStroke(); | |
} | |
float R = 160, r = 55; | |
int N = 720; |