Skip to content

Results for “script”

133 prompts

Write a pandas script to clean this CSV: [describe columns and problems, e.g. mixed date formats, duplicates, missing values, inconsistent names]. Log each cleaning step, keep a summary of rows changed, and save a clean file.

ChatGPT
Coding & Development

Python data cleaning script

Cleans messy CSV data into an analysis-ready table.

0

Write Python code using [matplotlib/plotly] to visualise [data description] as [chart type]. Add a clear title, labelled axes, readable fonts, sensible colors, annotations for key points, and save as PNG.

ChatGPT
Coding & Development

Chart from data with Python

Readable, well-labelled charts from your data.

0

Here's my regex: [regex] meant to match [description]. Generate 15 test strings that should match and 15 that shouldn't, including edge cases. Tell me which ones my regex gets wrong and suggest a fixed version.

ChatGPT
Coding & Development

Regex test cases

Tests a regular expression against tricky inputs.

0

Write a Bash script that [task]. Use set -euo pipefail, validate arguments, print usage help, log steps with timestamps, clean up temporary files on exit, and make it safe to run twice.

ChatGPT
Coding & Development

Bash script with safe defaults

A robust shell script with error handling and logging.

0

Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.

ChatGPT
Coding & Development

API client SDK wrapper

A typed wrapper around a third-party REST API.

0

Review and rewrite this page's HTML for SEO and accessibility: semantic elements, heading order, meta title and description, Open Graph tags, canonical link, structured data for [type], and image alt text. HTML: [paste HTML]

ChatGPT
Coding & Development

SEO-friendly HTML structure

Semantic HTML and meta tags that help search engines.

0

Show how to add Stripe Checkout to a [framework] app for [product type: one-time / subscription]. Include server code to create a session, redirect handling, a webhook endpoint that verifies signatures and fulfils orders, and test-mode steps. Use environment variables for keys.

ChatGPT
Coding & Development

Stripe payment integration

A secure Stripe Checkout setup with webhooks.

0

Build validation for a [form type] form in [framework or vanilla JS]. Validate [fields] on blur and submit, show inline accessible error messages, disable submit while sending, and handle server-side errors gracefully.

ChatGPT
Coding & Development

Form validation on the frontend

Accessible form validation with helpful error messages.

0

Write a Node.js script that [task, e.g. reads a CSV and calls an API for each row]. Use async/await, limit concurrency to [n], retry failed requests with backoff, log progress, and handle errors without crashing. Include package.json dependencies.

ChatGPT
Coding & Development

Node.js script with async/await

A clean Node.js script with proper async error handling.

0

Refactor this callback-based code to use async/await. Keep the behaviour identical, add proper try/catch error handling, and explain any changes in execution order. Code: [paste code]

ChatGPT
Coding & Development

Convert callbacks to async/await

Modernises callback-based code to promises and async/await.

0

My web page has these performance metrics and details: [Lighthouse results / stack / page description]. Identify the biggest causes of slow loading and poor Core Web Vitals, and give prioritised fixes with code examples (images, fonts, JS bundles, caching, rendering).

ChatGPT
Coding & Development

Web app performance audit

Finds and fixes slow page loads and poor Core Web Vitals.

0

Write Jest unit tests for this function/module. Cover normal cases, edge cases, error handling, and mock [dependencies]. Use descriptive test names and arrange-act-assert structure. Code: [paste code]

ChatGPT
Coding & Development

Unit tests in Jest

Thorough Jest tests with mocks and edge cases.

0