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)
| 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
The Ultimate AeroPress Technique
◉ 11g coffee
◉ 200g water (brought to a boil and used immediately)
A collection of code snippets explaining:
thisbindAll 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.
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"> |
| /** 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" |