Skip to content

Results for “window”

6 prompts

Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.

ChatGPT
Coding & Development

React custom hook

A reusable custom hook with clean state management.

Act as a backend engineer. Stack: [details] Endpoints to protect: [list] Limits wanted: [e.g. 100 requests/minute per API key, 5 login attempts per 15 minutes per IP] Infrastructure: [single server / multiple instances / Redis available] Implement rate limiting (explain fixed window vs sliding window vs token bucket),…

ChatGPT
Coding & Development

API rate limiting

Protect your API from abuse with rate limits per user, IP or API key.

Act as a performance marketer. Product: [details] Funnel stages: [visited site, viewed product, added to cart, started trial] Create a retargeting sequence for each segment: message, creative idea, offer (if any), frequency cap, and time window. Avoid repetitive or creepy messaging, and include exclusions for converte…

ChatGPT
Marketing & SEO

Retargeting ad sequence

Bring back visitors who didn't convert with a sequence of ads tailored to where they dropped off.

Help me read more. Current reading: [books per year] Goal: [books per year] Interests: [genres/topics] Time available: [daily windows] Create: a daily reading routine, a mix of book types to keep it enjoyable, a note-taking method to remember key ideas, a 12-month reading list structure (describe types of books if uns…

ChatGPT
Personal Growth

Read more books plan

Build a reading habit with a realistic plan, book choices and ways to remember what you read.

Act as a Linux/macOS command-line expert. OS and shell: [macOS zsh / Ubuntu bash / Windows WSL] Task: [e.g. find all .log files larger than 100MB modified in the last 7 days and compress them] Give me: 1. The command 2. A breakdown of each flag and part 3. A dry-run version that shows what would happen without changin…

ChatGPT
Coding & Development

Shell commands and Bash one-liners

Describe a terminal task and get the command, what each part does and a safer alternative where relevant.

Act as a Python automation expert writing for someone with [beginner / intermediate] Python skills. Task I want to automate: [describe it step by step] Input: [files, folders, spreadsheets, websites, APIs] Output: [what should be created or changed] Operating system: [Windows / macOS / Linux] How often it runs: [once…

ChatGPT
Coding & Development

Python script to automate a boring task

Describe a repetitive task like renaming files, cleaning spreadsheets or sending reports, and get a safe, well-commented Python script.