Skip to content

Instantly share code, notes, and snippets.

@opencoca
opencoca / CursorTools.json
Created March 5, 2025 18:53 — forked from ScriptedAlchemy/CursorTools.json
Reverse Engineering cursor prompts
{
"tools": [
{
"type": "function",
"function": {
"name": "codebase_search",
"description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.",
"parameters": {
"type": "object",
"properties": {
#!/usr/bin/env python3
"""
Google Fonts CSS Processor - Startr LLC
Copyright (c) 2025 Startr LLC, MIT License
Processes Google Fonts CSS to:
1. Generate wget commands to download all font files
2. Create revised CSS pointing to local font files
3. Organize fonts with semantic filenames
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Emoji Selector</title>
<style>
.container {
display: flex;

Trading Prompt

Let us think through how to b3st trade stocks given only a detailed list of the prices over the past week at hour resulting. We will think through this in LISP and present both LISP code, an explanation, and Python code. We will be allowed to revise our methodology continually, but we will be eliminated if we lose funds for more than three rounds. Note that the strategy must also win 60% of the time or better. Each turn will be an hour, and new price data will be added.

Thought for 66 seconds

Okay, let's see. The user wants to create a stock trading strategy using Lisp and Python. The constraints are that if we lose funds for more than three rounds, we're eliminated, and the strategy must win 60% of the time or better. Each turn is an hour with new price data. Hmm.

@opencoca
opencoca / index.html
Created September 7, 2024 11:23
Todo Deck
<link rel="stylesheet" href="https://startr.style/style.css">
<div class="stack">
<div class="stack--status">
<i class="fa fa-remove"></i>
<i class="fa fa-check"></i>
</div>
<div class="stack--cards">
<div class="stack--card">
@opencoca
opencoca / index.html
Last active June 2, 2024 10:49
Slides 26-5-11:52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reveal.js Presentation</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
#!/bin/bash
# Highlighting and emojis
YELLOW='\033[1;33m'
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
WARNING_EMOJI=$'\xE2\x9A\xA0'
CHECKMARK_EMOJI=$'\xE2\x9C\x85'
@opencoca
opencoca / experimenting-with-hyperscript-startr-style-system7-style-24-9-21.markdown
Created September 21, 2023 15:25
Experimenting with Hyperscript, Startr Style, System7 Style 24-9-21
@opencoca
opencoca / update-hosts.sh
Created June 18, 2023 18:05 — forked from jamshid/update-hosts.sh
Docker environment hack, to put the names of running containers in /etc/hosts
#!/bin/bash
# An alternative to "links", run this script after starting or stopping any
# container. It's a hack to update the host machine (vagrant) /etc/hosts with
# the current active docker containers and tell dnsmasq to refresh.
#
# Then start each machine with "-dns ${DOCKER_HOST_IP}", e.g.
# $ docker run -d -name mycontainer1 -dns 10.0.3.1 MYPRODUCT
# You can't seem to set the DNS during "docker build".
#
# Diagnostic command to run in host or while logged into containers:
@opencoca
opencoca / README.MD
Created March 3, 2023 12:14
One Click App dev

How to create a one-click app (as of v1.8.0):

First, have a look at this simple example. Now, read on for more details:

  • Find/create a docker-compose file for the app you're interested in.
  • Add captainVersion: 4 to the very top of the yaml file.
  • Add this section to the end of the yaml file: