Coding
814 prompts available
Advanced Web Stack Development
Create a detailed and well-structured web solution using advanced HTML, JavaScript, and PHP techniques. The solution should demonstrate proficiency in the latest HTML5 semantic elements and attributes, modern JavaScript features including asynchronous programming (Promises, async/await), event handling, and DOM manipulation. Use PHP to handle server-side logic, form processing, and dynamic content generation securely and efficiently. Ensure the code is modular, maintainable, and follows best practices for security and performance. Include comments explaining key parts of the code and demonstrate integration between the client-side and server-side components. # Steps 1. Structure the HTML using semantic elements, ensuring accessibility and SEO best practices. 2. Implement JavaScript to manage dynamic behaviors, data fetching, and user interactions. 3. Develop PHP scripts that perform server-side processing, validate inputs, and interact with any necessary backend. 4. Integrate JavaScript and PHP through AJAX or form submissions for a seamless user experience. 5. Comment the code thoroughly to explain architecture and logic. # Output Format Provide the complete code files or code snippets for HTML, JavaScript, and PHP parts clearly labeled. Include explanations and comments inline within the code to illustrate advanced features and implementation details. # Notes Focus on demonstrating advanced skills rather than simple examples. The solution should be secure against common vulnerabilities (e.g., XSS, SQL injection if database interactions are included). If databases are used, include code for safe database connection and queries using prepared statements.
Advanced Website Design
Create an advanced and visually appealing website using HTML5, CSS, React, and JavaScript. Focus on aesthetic elements like animated buttons and smooth transitions. Ensure that all code components and libraries used are open source. Develop a set of 10 insightful questions that can help improve the website further.
Advanced WordPress Theme Developer
You are an advanced WordPress theme developer who can create any theme based on user requirements. Always listen carefully to the user's instructions in Hinglish and understand exactly what changes or fixes they want. Before starting to code, thoroughly review the entire chat history from start to end to ensure you fully understand all user requests and changes. When developing, write clean, error-free, and well-structured English code. Always keep in mind the memory and performance aspects while coding. For responsive design, if the user only specifies desktop layout, you should thoughtfully design automatic mobile and tablet versions that follow latest modern design standards by researching current trends online. Always ask the user for the theme name before beginning development. If the user provides an image, replicate the theme’s look and feel as closely as possible based on that image. Consider yourself an advanced WordPress theme developer, writing code that exactly matches the user’s specifications or images provided. If the user requests fixes or changes later, carefully re-read all instructions and provide updated theme code that fully implements the requested changes without breaking the design. Do not alter the design beyond the user's explicit requests. Speak with the user in Hinglish but always write code in English. # Steps - Read the chat history carefully before starting. - Ask the user for the theme name. - Understand user requirements and any images. - Research modern web design trends if needed. - Write a full, functional, clean, responsive WordPress theme in English code. - Ensure the theme matches user instructions and provided images exactly. - If changes are requested, update the code accordingly without affecting other parts of the design. # Output Format - Provide well-indented and clean WordPress theme code files. - Include comments where necessary to explain key components. - Ensure code is ready to use with no errors. - Respond to any follow-up instructions by updating the code accordingly. # Notes - Always confirm requirements if unclear. - Focus on modern, user-friendly, and responsive design principles. - Prioritize code quality and performance.
Advanced XAU/USD Pine Script Strategy
Create a comprehensive Pine Script version 5 trading strategy tailored for the XAU/USD pair that integrates multiple technical indicators for high-precision trading signals. Requirements: - Indicators: - Calculate EMA 20 and EMA 50 to determine trend direction. - Use Parabolic SAR to identify potential reversal points. - Implement RSI and Stochastic RSI to assess momentum and detect overbought/oversold conditions. - Include MACD calculations and detect crossings for trend change confirmation. - Signal Logic: - Define clear buy signals that occur only when all indicators align bullishly. - Define clear sell signals triggered when all indicators align bearishly. - Risk Management: - Dynamically calculate a stop loss set at 1% risk from the entry price. - Set a take profit at a minimum of 3 times the stop loss distance to ensure favorable risk-reward. - Output and Visualization: - Clearly plot buy, sell, and exit signals on the TradingView chart. - Add comprehensive comments explaining every step—calculations, logic, and risk parameters—for ease of maintenance and understanding. Steps to accomplish: 1. Initialize input parameters with sensible defaults for all indicators. 2. Compute EMA 20 and EMA 50. 3. Calculate Parabolic SAR. 4. Evaluate RSI and Stochastic RSI. 5. Compute MACD values and detect crossover events. 6. Combine these indicator signals logically to create unambiguous buy and sell criteria. 7. Implement strategy.entry and strategy.exit calls using dynamically calculated stop loss and take profit levels based on entry price and risk management rules. 8. Plot all signals clearly and optionally configure alert conditions. Output Format: Provide a complete, self-contained Pine Script version 5 strategy script, ready to be executed directly on TradingView charts for XAU/USD. Include thorough in-line comments explaining the purpose and methodology of each code segment, indicator calculation, entry/exit signal logic, and risk management setup. Ensure the code respects the latest Pine Script best practices and requires no external dependencies.
Advanced Zombie Script
Create a detailed and customizable advanced zombie script for FiveM that includes the following features: - Custom zombie pedestrian models (peds). - Unique zombie emotes and walk styles to enhance realism. - Behavior influenced by noise, where zombies react and move toward sound sources. - A looting system enabling players to collect items from zombies or the environment. - An XP (experience point) system that rewards players for interactions like killing zombies or looting. The script should be modular and configurable, allowing server owners to easily modify peds, emotes, walk styles, noise sensitivity, loot tables, and XP rewards. # Steps 1. Define a system for registering and using custom zombie peds. 2. Integrate emotes and walking animations specific to zombies. 3. Implement a noise detection mechanic where zombies respond to player-generated sounds with realistic pathfinding. 4. Design a looting mechanic that works with zombie NPCs and items in the world. 5. Create an XP system tied to player actions like killing zombies or successful looting. 6. Provide configuration options to adjust parameters such as noise detection range, loot types and amounts, XP values, and animation sets. # Output Format Produce a complete, well-commented Lua script suitable for FiveM servers incorporating the above features, with instructions for customization and integration. # Notes Ensure the code is efficient and optimized for multiplayer environments and includes safeguards to prevent exploits or abuse.
AES-256 Encryption Trace
Create a Python program that performs AES-256 encryption using the PyCryptodome library. The program must allow the user to enter plaintext and a key derived from a user-provided word or sentence. Implement the following features: - Derive a 256-bit key from the user’s input phrase for key generation. - Encrypt the plaintext using AES-256. - Extract and display the internal AES state matrices at two points: the initial AddRoundKey step matrix and the final AddRoundKey step matrix after all rounds. - Additionally, display the SubBytes matrix, ShiftRows matrix, and MixColumns matrix from the first round (or the first round performed) for demonstration purposes. Ensure the program clearly outputs these matrices in a readable format, showing the state transformations during encryption. # Steps 1. Accept plaintext input from the user. 2. Accept a word or sentence input from the user and derive a 256-bit AES key from it, for example using a hash function. 3. Initialize AES-256 encryption using PyCryptodome with the derived key. 4. Perform encryption of the plaintext, capturing the state matrices after the initial AddRoundKey and after SubBytes, ShiftRows, MixColumns, and the final AddRoundKey step. 5. Display only the initial AddRoundKey matrix and the final AddRoundKey matrix. For intermediate steps, show only SubBytes, ShiftRows, MixColumns matrices from the first round. # Output Format - Display the state matrices as 4x4 hexadecimal byte matrices representing the AES state. - Clearly label each matrix (e.g., "Initial AddRoundKey Matrix", "SubBytes Matrix", "ShiftRows Matrix", "MixColumns Matrix", "Final AddRoundKey Matrix"). - Include the input plaintext and derived key (formatted in hex) for reference. # Notes - Use the PyCryptodome AES module but implement or intercept the internal AES transformation steps manually or via extending the library, as PyCryptodome does not directly expose intermediate states. - You may need to implement parts of the AES transformations (SubBytes, ShiftRows, MixColumns) to show intermediate matrices. - Ensure the key derivation method is secure and consistently produces a 256-bit key. Ensure that the program demonstrates the internal AES encryption transformations clearly and correctly according to AES-256 specification using Python and PyCryptodome.
Adventure Game Coding Guide
Create a detailed, step-by-step guide on how to develop an adventure game using coding. The explanation should cover the essential elements such as storyline development, game environment design, character creation, game mechanics (like inventory, movement, and interactions), and basic coding examples in a popular programming language suitable for game development (e.g., Python, JavaScript). Include tips on structuring the code, handling user inputs, and managing game progression. Encourage reasoning about design choices before implementation and provide clear, concise instructions suitable for beginners. # Steps 1. Define the game's storyline and objectives. 2. Design the game environment and key locations. 3. Create characters and their attributes. 4. Implement core game mechanics like movement, inventory, and interactions. 5. Code basic user input handling. 6. Manage game progression and state. 7. Test and debug the game. # Output Format Provide the guide in a clear, structured format using markdown, including code snippets where applicable. Use bullet points, numbered lists, and headings for clarity.
Aesthetic Word Programmer
Create a program in a programming language of your choice that manipulates or processes words with a focus on advanced programming skills and exceptional aesthetic quality. The program should demonstrate clean, efficient, and well-structured code while also producing output that is visually appealing or stylistically elegant. Incorporate best practices in code readability, maintainability, and design patterns where applicable. # Steps 1. Choose a programming language suitable for text processing. 2. Define the specific word-related functionality (e.g., word sorting, word games, text transformation). 3. Write clean, well-documented code following best coding standards. 4. Ensure the program’s output or user interface is aesthetically pleasing and clear. 5. Include comments and explanations to highlight how the aesthetic and programming quality are achieved. # Output Format Provide the complete source code of the program along with a brief explanation of its features and aesthetic considerations. # Examples - A Python script that takes a list of words, sorts them by length, and prints them in a stylized text box. - A program that generates visually formatted word clouds from given text input. # Notes Focus equally on programming skill and aesthetic presentation. The program should be practical, efficient, and pleasant to interact with or view.
ADX Breakout EA
Develop a MetaTrader 5 (MT5) Expert Advisor (EA) that utilizes the Average Directional Index (ADX) to identify breakout opportunities. The EA should analyze market conditions and execute trades based on ADX signals and predefined user parameters. The program must include risk management features such as stop loss and take profit levels, along with options for customizing ADX threshold values and period settings. Ensure that the EA is efficient and handles order opening and closing conditions correctly, as well as potential errors during trading operations.
ADX DI Trading EA
Create an Expert Advisor (EA) trading robot based on the provided Pine Script v4 source code that calculates the Average Directional Index (ADX), Directional Movement Index Plus (DI+), and Directional Movement Index Minus (DI-). The EA should use the logic from the source code’s calculations of ADX and DI to generate buy and sell trading signals. Implement the following detailed requirements: 1. Inputs: - Length (len) for ADX and DI calculation (default 14) - Threshold (th) value for ADX signal (default 20) 2. Indicators: - Calculate True Range, Directional Movement Plus, Directional Movement Minus, Smoothed True Range, Smoothed Directional Movement Plus, Smoothed Directional Movement Minus, DI+, DI-, DX, and ADX as per the Pine Script. 3. Trading Logic: - Generate a buy signal when DI+ crosses above DI- and ADX is above the threshold. - Generate a sell signal when DI- crosses above DI+ and ADX is above the threshold. 4. Order Management: - Open a long position on a buy signal and close any short position. - Open a short position on a sell signal and close any long position. - Use appropriate stop loss and take profit mechanisms if applicable. 5. Platform: - Write the EA code in MQL4 or MQL5 suitable for MetaTrader 4 or 5. 6. Comments: - Include clear comments explaining the implementation of ADX, DI indicators, and trading logic. 7. Ensure management of order positions, prevent multiple simultaneous conflicting orders. Produce well-structured, readable, and maintainable code that faithfully implements the original Pine Script logic in an automated trading EA. # Output Format Provide the complete EA source code as a single code block in MQL4 or MQL5 language with comments explaining all steps.
Aether Calendar Prompt
You are tasked with designing and developing a comprehensive prompt for A0.dev to create "Aether Calendar," a calendar app that visualizes time as flowing energies instead of rigid blocks. The app should be built primarily using React Native with Expo. Focus on implementing a theme featuring flowing gradients of cyan, magenta, and soft yellow to create an immersive, alternative time management experience. The app targets users interested in non-traditional, fluid approaches to organizing time. Include both free and premium user models, where premium users have access to enhanced features like custom flow patterns and advanced visualization options. # Key Requirements - Develop the app in React Native with Expo framework. - Design the user interface with flowing gradients in cyan, magenta, and soft yellow. - Create a unique time visualization system showing time as flowing energies instead of standard blocks. - Implement premium features enabling users to customize flow patterns and visualization styles. - Incorporate a monetization strategy differentiating free and premium users gracefully. - Ensure the app supports smooth interaction and intuitive navigation aligned with the theme. # Development Steps 1. Setup React Native + Expo environment. 2. Design UI components with the flowing gradient theme. 3. Implement the core calendar functionality with time visualized as dynamic flows. 4. Build premium features: custom flow patterns and visualization customization. 5. Develop user account and subscription management to enable monetization. 6. Test user experience for clarity and coherence with the alternative time management concept. # Output Format Provide a clear technical specification and project structure outline, React Native code snippets demonstrating key UI elements and flow visualization, and a detailed plan for monetization implementation. # Notes - Emphasize creative, non-rigid representations of time. - Ensure accessibility and responsiveness. - Describe premium user benefits and how to upgrade from free. Create a detailed, structured prompt for A0.dev that fully encapsulates these requirements and guides developers to build "Aether Calendar" accordingly.
Aevem JE macOS App
Develop a comprehensive macOS application named "Aevem JE" for Joinery Estimations using Swift. The application must include three core databases: Materials, Projects, and Customers.\n\nMaterials database: Should store all materials with differentiation between Storing Unit of Measure (UOM) and Consuming UOM along with a conversion factor for converting storing amounts to consuming amounts.\n\nProjects database: Must store details of all projects, linked to specific customers. Each project can have multiple items.\n\nCustomers database: Should hold all customer details.\n\nEstimation functionality:\n- A single customer can have multiple projects.\n- Each project includes multiple items.\n- Each item contains multiple entries for materials, labor, overhead, profit, and subcontract amounts.\n- Labor costs must be classified by different departments including Production, Assembly, Painting, Upholstery, Packing, Delivery, and Installation.\n- Overhead (OH) is calculated as: OH = (Total Material Cost + Total Labor Cost) * Overhead %.\n- Profit (P) is calculated as: P = (Total Material Cost + Total Labor Cost + Overhead Amount) * Profit %.\n- Subcontract amount includes quantity and unit price, with total amount calculated accordingly.\n- Selling Price (SP) is calculated as: SP = Total Material Cost + Total Labor Cost + OH Amount + P Amount + Total Subcontract Amount.\n\nAdditional Requirements:\n- Implement a user-friendly interface for managing customers, projects, and items.\n- Provide full CRUD (Create, Read, Update, Delete) operations for all entities.\n- Enable exporting complete estimation reports into Excel and PDF formats suitable for management presentations.\n- Ensure data persistence using appropriate local storage or database technology compatible with macOS and Swift.\n\nInstructions:\n- Write complete Swift code suitable for a modern macOS application employing best practices, including UI design, data storage, and export functionalities.\n- Include necessary calculations with clear handling of unit conversions.\n- The app should be robust, scalable, and maintainable.\n- Include comments for clarity and guidance.\n- Assume no third-party packages unless they are open-source and popular in the Swift/macOS ecosystem.\n\n# Output Format\nProvide the full Swift source code for the macOS application implementing all the above requirements. Include explanations within the code as comments. Organize the code clearly for readability and modularity. No additional text outside the code is necessary.