Skip to content

Instantly share code, notes, and snippets.

View fluency03's full-sized avatar

Chang Liu fluency03

  • London
View GitHub Profile
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active November 20, 2025 17:08
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.

The Ultimate V60 Technique

◉ Brew ratio: 60 g/L (e.g. 30 g per 500 mL,  18 g per 300 mL, 12 g per 200 mL, ...)

◉ Grind size: medium fine, Niche Zero: 40 ~ 50

◉ Temperature: the hotter, the better (especially with lighter roasts)

The Ultimate Clever Dripper Technique

◉ Brew ratio: 60-65g/L (18 g per 300 mL)

◉ Grind size: medium fine, Niche Zero: 45 ~ 50

Brew

  1. Grind 18 g coffee
  2. Fold and rinse paper with hot tap water

The Ultimate AeroPress Technique

◉ 11g coffee

  • Ground at the finer end of medium, assuming this is light roasted coffee.
  • The darker you go the more you may prefer to increase the dose and coarsen the grind.
  • Niche Zero: 30 ~ 35

◉ 200g water (brought to a boil and used immediately)

  • The darker the roast is, the lower the temperature is (or even down to 90 Celsius for really dark roast)
@lkaihua
lkaihua / 00.README.md
Last active February 6, 2019 15:36
Javascript examples on `this`

A collection of code snippets explaining:

  • this
  • bind
  • arrow functions
@panva
panva / README.md
Last active October 20, 2024 09:39
Simple Native OAuth2.0 Application Login CLI implementation

Simple Native OAuth2.0 Application Login CLI implementation

run

npx https://gist.github.com/panva/429e0c646eb730079fe0a0070c160e1d
@sebmarkbage
sebmarkbage / The Rules.md
Last active October 25, 2025 11:39
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@paulp
paulp / build.sbt
Last active October 28, 2017 13:02
/** Your task is to reason your way to which compiler
* options which will be passed for each of
* 1) sbt root/compile
* 2) sbt p1/compile
*/
scalacOptions := Seq("-DSBT")
scalacOptions in ThisBuild += "-D0"
scalacOptions in Global += "-D1"
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active November 5, 2025 09:57
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render