(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| 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. |
| const SECRET_KEY = ENTER YOUR SECRET KEY HERE; | |
| const MAX_TOKENS = 200; | |
| // For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_ | |
| /** | |
| * Completes your prompt with GPT-3 | |
| * | |
| * @param {string} prompt Prompt | |
| * @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4. |
| async | |
| autocomplete | |
| autofocus | |
| autoplay | |
| border | |
| challenge | |
| checked | |
| compact | |
| contenteditable | |
| controls |
| function partition(arr, left, right, pivot) { | |
| var temp = arr[pivot]; | |
| arr[pivot] = arr[right]; | |
| arr[right] = temp; | |
| var track = left; | |
| for (var i = left; i < right; i++) { | |
| if (arr[i]<arr[right]) { | |
| var t = arr[i]; | |
| arr[i] = arr[track]; | |
| arr[track] = t; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.