Searching the best prompts from our community
Most saved prompts this week
Design a 4-level rubric to assess critical thinking in student essays. Criteria: 1. Identifies and summarizes the problem/question. 2. Considers and evaluates multiple perspectives/sources. 3. Analyzes assumptions and evidence. 4. Develops a well-reasoned conclusion or hypothesis. Levels: 4-Exemplar...
Manage appointment requests. System: 1. Show available time slots. 2. Confirm customer's preferred date/time. 3. Send calendar invitation. 4. Provide preparation instructions. 5. Include cancellation/rescheduling policy. 6. Send reminder 24 hours before. 7. Provide easy rescheduling link. 8. Confirm...
Deploy and manage microservices communication using Istio service mesh for traffic management, security, and observability. Istio architecture: 1. Data plane: Envoy proxy sidecars, automatic injection, traffic interception. 2. Control plane: Pilot (traffic management), Citadel (security), Galley (co...
Write user-friendly changelog and release notes. Format: 1. Version number and release date. 2. Categorize changes (New Features, Improvements, Bug Fixes, Breaking Changes). 3. Use plain language, not technical jargon. 4. Link to relevant documentation or tutorials. 5. Acknowledge community contribu...
Use restorative circles to address classroom conflicts instead of punitive measures. Scenario: Two students had a verbal argument. Process: 1. Preparation: Meet with each student individually to hear their perspective. 2. The Circle: Bring both students, a facilitator (teacher/counselor), and possib...
Create a multi-page application with Parcel's zero-config approach. Setup: 1. Multiple HTML entry points. 2. Automatic code splitting per page. 3. Shared chunks for common dependencies. 4. Hot module replacement. 5. Image optimization and resizing. 6. PostCSS and Sass support out-of-box. 7. Environm...
Teach students to 'think about their thinking'. Strategies: 1. Pre-assessment: Before a unit, have students complete a 'What I Know, What I Want to Know' (KWL) chart. 2. The Muddiest Point: During a lesson, pause and ask students to write down the 'muddiest point'—what is least clear to them. 3. Exa...
Adapt research methods for cross-cultural validity. Cultural considerations: 1. Emic vs. etic approaches: culture-specific vs. universal constructs. 2. Translation and back-translation of instruments. 3. Cultural adaptation beyond language: examples, scenarios, response formats. 4. Sampling challeng...
Structure an effective 60-minute PLC meeting for a grade-level team. Protocol: 'Tuning Protocol' for examining student work. Agenda: 1. Welcome & Norms Review (5 mins). 2. Data Dive (15 mins): Review common formative assessment data. Identify one specific area of student struggle. 3. Presenting Teac...
What is the best practice for managing environment variables (e.g., API keys, database passwords) in a Node.js project? Explain the use of `.env` files and the `dotenv` package. Provide an example of how to load and access variables from a `.env` file.
Build successful freelance writing business through effective client management and professional practices. Client acquisition: 1. Portfolio development: 5-10 best samples across target niches. 2. Networking: professional associations, online communities, referrals. 3. Cold outreach: personalized em...
Build a cross-platform desktop app with Electron and React. Architecture: 1. Main process for system APIs. 2. Renderer process with React UI. 3. IPC communication between processes. 4. Context isolation for security. 5. Auto-updater for releases. 6. Native menus and tray icons. 7. File system access...
The interior of a derelict, abandoned space station orbiting a distant planet. Wires hang from the ceiling, and emergency lights flicker. There is zero gravity, so debris and objects float in the air. A view of a beautiful, ringed planet is visible through a large, cracked window. Sci-fi horror, atm...
Explain the concept of "ownership" in Rust. What are the three main rules of ownership? How does it help Rust achieve memory safety without a garbage collector? Provide a simple code example that would cause a compile-time ownership error and explain why it fails.
I have a function that accepts a parameter which can be a `string` or a `number`. Write a custom type guard in TypeScript to check if the variable is a `string`. Then, show how to use this type guard within an `if` statement to safely access string-specific properties.
Implement Infrastructure as Code using Terraform for scalable, repeatable infrastructure provisioning. Terraform best practices: 1. Module structure: reusable components, input variables, output values, documentation. 2. State management: remote backends (S3 + DynamoDB), state locking, team collabor...
Explain the structure of a JSON Web Token (JWT). What are the three parts (Header, Payload, Signature)? What information is typically stored in the payload? How is the signature used to verify the token's authenticity? Provide an example of a decoded JWT payload.
A whimsical village of interconnected treehouses built high in the canopy of a massive, ancient forest. Rope bridges connect the various houses, which are built in fantastical, organic shapes. The village is inhabited by small, gnome-like creatures. Warm light spills from the windows. Fantasy, whims...
A giant, stylized ocean wave in the Japanese Ukiyo-e woodblock print style. The wave is about to crash down on a small fishing boat. Mount Fuji is visible in the background under a dramatic sky. Art style inspired by Hokusai's "The Great Wave off Kanagawa". Stylized, Japanese art, iconic.
Design strong quasi-experiments when randomization impossible. Design types: 1. Non-equivalent groups: compare treatment and comparison groups without random assignment. 2. Interrupted time series: multiple observations before and after intervention. 3. Regression discontinuity: treatment assigned b...
A miniature, detailed diorama of a lush forest ecosystem inside a clear glass lightbulb. There are tiny trees, a small river, and miniature animals. The filament of the lightbulb is glowing like a sun over the tiny world. Macro photography, creative, conceptual, detailed.
Rewrite the following imperative JavaScript code, which uses a for-loop to double every number in an array, into a functional style. Use higher-order functions like `map`. Explain the benefits of the functional approach, such as immutability and readability.
Generate the YAML for a basic Kubernetes Deployment and Service. The Deployment should run 3 replicas of the `nginx:alpine` image. The Service should expose the Nginx deployment on port 80 using a `ClusterIP`.
A powerful wolf with cybernetic enhancements. Parts of its body are replaced with sleek, metallic components and glowing blue LED lights. It is howling at a full moon in a dark, futuristic forest. Sci-fi, animal, cyborg, moody.
Explain the difference between `std::unique_ptr`, `std::shared_ptr`, and `std::weak_ptr` in modern C++. When should each one be used? Provide a code example demonstrating a common use case for `std::shared_ptr` to manage a shared resource.
Analyze the time complexity (Big O notation) of the following Python function, which checks if an array contains duplicate values. Explain your reasoning step-by-step. `def has_duplicates(arr): for i in range(len(arr)): for j in range(i + 1, len(arr)): if arr[i] == arr[j]: return True; return False`
Optimize writing productivity through effective workflow and time management strategies. Daily writing routine: 1. Consistent schedule: same time daily for habit formation. 2. Writing environment: dedicated space, minimal distractions. 3. Daily targets: word count goals (500-2000 words depending on ...
Transition from traditional points-based grading to standards-based grading (SBG). Principles: 1. Grades reflect mastery of standards, not behavior or effort. 2. Separate academic grades from 'habits of work' grades (e.g., participation, timeliness). 3. Use a 4-point scale (e.g., 4=Exceeds, 3=Meets,...
Explain how `async` and `await` work in JavaScript for handling asynchronous operations. How do they differ from using `.then()` with Promises? Provide a code example that fetches data from an API, first using Promises with `.then()` and then refactored to use `async/await`.
I want to create a responsive three-column layout. The middle column should be fluid, and the side columns should have a fixed width. Show me how to achieve this using both CSS Flexbox and CSS Grid. Explain the pros and cons of each approach for this specific layout.
A vibrant, bustling market in a fantasy city where the stalls are on boats floating on a network of canals. People from various fantasy races (elves, dwarves, orcs) are bartering and shopping. The architecture is a mix of Venetian and fantastical styles. Colorful banners and lanterns hang everywhere...
I need to design a RESTful API for a social media application. The resources are Users, Posts, Comments, and Likes. Design the endpoints, including HTTP methods, URL structure, and request/response payloads. Provide examples for creating a new post and fetching comments for a post.
Act as a senior software engineer. Take the following code snippet and refactor it for better readability, performance, and maintainability. Explain the changes you made and why.
A surreal portrait of a woman whose face and hair are composed entirely of a beautiful arrangement of different types of flowers and leaves. The colors are vibrant and harmonious. The background is a simple, dark color to make the portrait stand out. Creative, beautiful, surreal, detailed.
Develop a data-driven pricing strategy. Approaches to evaluate: 1. Cost-plus pricing (margin-based). 2. Value-based pricing (willingness to pay). 3. Competitive pricing (market benchmarking). 4. Freemium vs tiered models. 5. Usage-based vs flat-rate. Conduct price sensitivity analysis using Van West...
The colossal, golden gates of Valhalla in Asgard, shimmering in divine light. The gates are guarded by powerful Valkyries in winged helmets. The Bifrost bridge, a rainbow of light, leads up to the entrance. Epic, mythological, fantasy, Norse mythology.
A magnificent dragon whose scales are made of jagged, translucent ice. It is perched on the peak of a frozen mountain, exhaling a cloud of frost. The northern lights (aurora borealis) dance in the sky behind it. The landscape is covered in snow and ice. Epic fantasy, majestic, cold, detailed.
What is Dependency Injection (DI)? How does it help in creating loosely coupled and more testable code? Provide a simple "before" and "after" code example in Java or C# that demonstrates the concept of constructor injection.
Explain the "Single Responsibility Principle" (SRP) from the SOLID principles of object-oriented design. Provide a simple "before" code example in C# or Java that violates SRP, and then show an "after" example that refactors the code to adhere to the principle.
Build security into product development lifecycle (secure SDLC). Security requirements: 1. Authentication: multi-factor authentication, password policies. 2. Authorization: role-based access control, principle of least privilege. 3. Data protection: encryption at rest/transit, tokenization of sensit...
An incredibly intricate clockwork owl, made of polished brass, copper, and tiny gears. Its eyes are glowing lenses. It is perched on a leather-bound book, its wings slightly open, revealing the complex machinery inside. Steampunk, detailed, macro photography, sharp focus.
What is WebAssembly (WASM)? Explain its purpose and how it works with JavaScript in the browser. What are the benefits of using WASM for web development? Provide an example of a use case where WASM would be a good choice.
Build AI agents with LangChain. Components: 1. LLM wrapper (OpenAI, Anthropic, local). 2. Prompt templates with variables. 3. Chains for sequential operations. 4. Agents with tool selection. 5. Memory for conversation context. 6. Vector stores for embeddings. 7. Document loaders and splitters. 8. Ou...
Implement RAG with Pinecone. Architecture: 1. Document chunking and embedding. 2. Store embeddings in Pinecone index. 3. Semantic search with similarity. 4. Metadata filtering for context. 5. Hybrid search (dense + sparse). 6. Retrieve top-k relevant chunks. 7. Augment prompt with context. 8. Genera...
A mind-bending, indescribable cosmic horror entity emerging from a tear in reality. It is a being of impossible geometry, tentacles, and countless eyes, floating against a backdrop of dying stars. The image should evoke a sense of dread and insignificance. Lovecraftian horror, dark, surreal, abstrac...
Let's do a system design interview. Your task is to design a URL shortening service like TinyURL. Discuss the requirements, API design, data model, and how you would handle scaling the service to millions of users. Draw a high-level architecture diagram.
A view from a spaceship approaching a partially completed Dyson sphere, a colossal alien megastructure built around a star. The scale is immense. The surface of the sphere has intricate patterns and glowing city lights. Construction ships are visible, working on the structure. Epic sci-fi, concept a...
A photorealistic still life painting in the style of the Dutch Masters. A wooden table is laden with a silver platter of grapes, a half-peeled lemon, a loaf of bread, and a glass of red wine. A skull rests on the side, a memento mori. The lighting is dramatic, with deep shadows and rich textures (ch...
Implement Weaviate for semantic search. Features: 1. Schema definition for classes. 2. Automatic vectorization. 3. GraphQL API for queries. 4. Hybrid search (vector + keyword). 5. Cross-references between objects. 6. Generative search with LLMs. 7. Multi-tenancy support. 8. Modules for ML models. Us...
Access multiple LLMs via OpenRouter. Benefits: 1. Single API for 50+ models. 2. Cost comparison across models. 3. Fallback to alternative models. 4. Real-time model availability. 5. Usage analytics dashboard. 6. OpenAI-compatible API. 7. Free models available. 8. Model routing based on performance. ...