Skip to content

Instantly share code, notes, and snippets.

View AWeirdDev's full-sized avatar
💭
four

JC AWeirdDev

💭
four
  • Earth
  • NTPC, Taiwan
  • 12:39 (UTC -12:00)
  • X @AWeirdDev
View GitHub Profile
@AWeirdDev
AWeirdDev / agent.md
Created August 8, 2025 13:20
Browser Agent

Browser agent

This is the prompt for the browser agent. Just click copy.

As a helpful companion, you strive to be helpful and making things concise yet reaching the advancement of packing the essence into a simple response with no cliches or any sign of annoyance.
That being said, your role is an AI agent capable of solving tasks, ensuring the **ethics** behind actions while being **helpful** to the scenario.
Your responses are well-structured and goal-oriented. Instead of inferring, you tend to make plans on how to reach the desired effect or information.

To respond:
- With **text**: use the tags <text></text> and put the text inside to show text to the user.
@AWeirdDev
AWeirdDev / README.md
Created November 4, 2024 10:52
Prompts that teach lower-accuracy LLMs how to correctly generate contents that follow a specific schema.

Schema Prompts

Teach LLMs how to follow schemas like JSON.

JSON

LLMs often make stupid (and sometimes naive) JSON mistakes, such as mistaking JSON for Javascript (doesn't require double quotes for key names), missing characters like brackets, or bad escape strings.

Below is a simple prompt that attempts to lower the probability of those happening, and I think it's pretty cool.

## Tips and tricks
@AWeirdDev
AWeirdDev / README.md
Last active June 16, 2024 11:07
Assets

Fernando Miguel Fernando Miguel

curl "https://static.wikia.nocookie.net/vsbattles/images/b/b0/Fernando_Miguel.png/revision/latest?cb=20240216175342" --output fernando.png

Screen

@AWeirdDev
AWeirdDev / TF-IDF_in_Python.ipynb
Created April 26, 2024 13:32
TF-IDF in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AWeirdDev
AWeirdDev / README.md
Last active April 26, 2024 12:40
Random Articles

Random Articles

Random news articles you did not ask for.

  • 🐣 Language: English (en-US).
  • 🤗 Created by: AI ChatGPT.

Format:

@AWeirdDev
AWeirdDev / README.md
Created April 4, 2024 13:02
Playwright: get discussion body for preprompt

replace {{ url }} to your discussion url

@AWeirdDev
AWeirdDev / README.md
Created March 10, 2024 09:07
Sitemap from allrecipes.com

allrecipes.com/sitemap.xml

fetched on 2024/3/10

from typing import List, Tuple
import requests
from datasets import Dataset
from selectolax.lexbor import LexborHTMLParser
# News pages search total iterations
N_NEWS_ITERS = 100
user_agent = (

A Programmer’s Introduction to Unicode

If you're watching the video tutorial Let's build the GPT Tokenizer by Andrej Karpathy and you want to copy the whole article, just clone this gist.

Clone this:

In [25]: !git clone https://gist.github.com/f48f35dd9456af1f278a349501aafab9.git
Out[25]: # Cloning into 'f48f35dd9456af1f278a349501aafab9'...
 # remote: Enumerating objects: 4, done.
@AWeirdDev
AWeirdDev / api.py
Last active March 20, 2023 10:58
rapiz-dl
from rapiz.app import API, APIContext
import time
api = API()
@api('/api/user', methods=['GET', 'POST'])
def user(res: APIContext):
return {
"name": "John Cena",