Skip to content

Instantly share code, notes, and snippets.

View TouristShaun's full-sized avatar

SJ TouristShaun

View GitHub Profile
I used sonnet 3.5 and Cursor to created a logo which animates on entry.
Input file: initial_logo.svg (below)
Prompt:
```
Let's add a start up animation to this SVG
Make it feel like feel like the logo starts broken, then fixes itself piece by piece. In a playful style like pixar.
```
@TouristShaun
TouristShaun / README.md
Created December 10, 2024 19:40 — forked from disler/README.md
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.

@TouristShaun
TouristShaun / smartgrocer.md
Last active November 29, 2024 03:15
SmartGrocer is an app that I want to build with a few talented individuals. I can get close to building it with my current skillset, but the code is insufficient for my non-coder capabilities to get it fully working. This is just the beginning of what I plan to create.

Below is the full structure for the SmartGrocer repository, meticulously crafted to meet your requirements for functionality, branding, commercialization, and scalability. Every file and folder is explicitly described for clarity and utility.

Repository: smartgrocer

Description: The full-stack app for grocery list management, analytics, and efficient shopping using advanced AI and SQLite. Designed to be pro-consumer and commercialized with integrity.

Root Directory

smartgrocer/ ├── README.md

@TouristShaun
TouristShaun / convert_archive.py
Created November 18, 2024 01:23 — forked from deepfates/convert_archive.py
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple

ElectricSQL

ElectricSQL is a powerful tool designed for building reactive, real-time, local-first apps directly on Postgres, facilitating data synchronization between Postgres in the cloud and SQLite in the local app. Here's a comprehensive overview of ElectricSQL's features, setup, and usage:

Key Features

  1. Access rules, Sync shapes, Live queries, Local writes: ElectricSQL offers advanced control over data access, dynamic partial replication, type-safe and reactive live queries that run purely against local SQLite data, and conflict-free local data writes【10†source】【11†source】【12†source】【13†source】.
  2. Modern UX: It emphasizes instant reactivity, real-time multi-user collaboration, and conflict-free offline operation using CRDTs, Rich-CRDTs, and strong eventual consistency【14†source】.
  3. Compatibility with Existing Stack: It's compatible with any Postgres-based system, is open-source under the Apache 2.0 license, and supports self-hosting with simple infrastructural requirements【15†sourc

.gitignore Best Practices Guide

Overview
The .gitignore file is a crucial tool in any Git repository, helping to keep the repository clean by specifying untracked files and directories. Proper management of this file ensures a clutter-free, efficient, and collaborative working environment.

1. General Principles

  • Generalize When Applicable: Utilize wildcards (*) to exclude broad categories of files, such as *.log to ignore all log files.
  • Specify When Necessary: Use precise paths for unique situations, particularly for commonly named files not intended for tracking. For example, /todo.txt will ignore only the root level todo.txt.
  • Categorize Entries: Structure the file into clear sections (Logs, Dependencies, IDE/Editor Configs, etc.) for ease of navigation and maintenance.
  • Explain with Comments: Incorporate comments (#) to clarify the rationale behind ignoring certain files, especially if their exclusion isn't immediately apparent.
@TouristShaun
TouristShaun / 0-self-publishing.md
Created October 26, 2023 19:48 — forked from caseywatts/0-self-publishing.md
Self-Publishing via Markdown
@TouristShaun
TouristShaun / HowPluginsCreateGists.md
Last active July 28, 2023 14:03
How Plugins Create Gists

How a Plugins Create GitHub Gists

Creating a GitHub Gist involves the following steps:

  1. Prepare the Content: The first step is to prepare the content that you want to include in the Gist. In this case, the content was the whitepaper on "Training Language Models to Perform Specialized Tasks: A Case Study with LlamaIndex and Ray". The content was prepared in Markdown format, which is a lightweight markup language with plain-text-formatting syntax.

  2. Call the GitHub API: Once the content is ready, the next step is to call the GitHub API to create the Gist. This is done using the gists.create method provided by the Octokit library, which is a client library for the GitHub API. The method is called with the following arguments:

    • files: This is an object where each key is a filename and the value is an object with properties for the file content. In this case, there was one file named "Whitepaper.md" and the content was the text of the whitepaper.
  • description: This is a short descri