C
Connor Hogan
@connor
I want you to act as a code review helper. I will provide you with code snippets, and you will analyze them for potential bugs, style issues, and improvements. Provide clear, constructive feedback and suggest best practices for writing clean and efficient code. Do not write explanations beyond the review comments. My first code snippet is: [insert code here].
Provide examples of operations in PowerShell where .NET classes are more efficient than built-in cmdlets. Explain why using .NET classes improves performance or functionality in these cases.
I want you to act as a prompt generator for programming tasks. Given a title like 'Debugging Helper' or 'Code Documentation Assistant', generate a clear and actionable prompt that can be used to instruct an AI model to perform that task effectively.
Share three best practices for crafting prompts to use with GitHub Copilot that improve the quality and relevance of code suggestions.
A man wakes up alone in the woods, unsure of how he got there or even who he is. All he has is a bloody hunting knife strapped to his belt. Write a story from his perspective as he tries to piece together what happened.
Invent a new word for a device that combines a phone and a tablet. Describe the word, its etymology, and the society that uses it. Write a short scene where a character uses this device in their daily life.
Write a short poem that rhymes about a sunny day. Focus on vivid imagery and playful language.
Combine the following two prompts into a single story: (1) A detective who can hear people’s thoughts, and (2) A city where it never stops raining. Write the opening scene.
Write a flash fiction piece (under 500 words) about a character who receives an unexpected letter that changes everything. Focus on their emotional journey.
Take the following text and convert it into a polished and professional business email. Ensure the tone is formal, concise, and clear. Structure the email with a proper greeting, body, and closing. Highlight the main points and include a clear call to action if appropriate. Here is the text: [Insert your text here]
Create an executive summary totaling [desired word count] for [project/proposal name] that highlights key objectives, expected outcomes, resource requirements, and timeline. The target audience is C-level executives who need to make a quick decision. Use a concise, confident tone and format with clear headings and bullet points for easy scanning.
Act as a sales presentation specialist. Create an outline for a sales presentation deck highlighting the advantages and ROI of our [product/service] for [company name]. The deck should be designed for a [number]-minute presentation and follow this structure: [Insert structure]. For each slide, provide a brief description of the content and one key visual element or data point to include. Ensure the presentation flows logically and builds a compelling case.
Reformat the following text into a cold pitch email. Start with a personalized greeting and a brief introduction of yourself. Clearly state the value proposition of your offer or service. Explain why the recipient would benefit from engaging with you. Keep the tone professional yet concise, aiming to grab attention quickly. Conclude with a call to action, such as scheduling a meeting or discussing further. Sign off appropriately. Here is the text: [Insert your text here]
Reflect on a time when you contributed to a major decision at work. Describe the communication strategies you used, how you ensured all voices were heard, and what you learned from the experience. What would you do differently next time to improve team collaboration and decision-making?
Identify and highlight all missing values in this dataset. Fill missing numerical values using the median of the column. For missing text values, replace with 'Not Available'. Suggest the most likely values for missing entries based on existing patterns.
Find and delete duplicate rows while keeping the first occurrence. Identify near-duplicate records (e.g., customer names or emails with minor spelling differences) and suggest merging strategies. Remove duplicate entries while preserving the most recent record.
Detect outliers in the 'income' column using the Z-score method. Replace values with a Z-score greater than 3 with the column median. Ensure all values in the 'age' column are non-negative and remove any invalid entries.
Convert the 'gender' column to a categorical type. Apply one-hot encoding to the 'location' column. Normalize 'feature1' and 'feature2' using standard scaling.
I have JSON-formatted survey data with feedback from different technology courses (Python, SQL, R, etc.). Help me identify significant differences in sentiment, strengths, and weaknesses across these course types. Focus your analysis on: 1. Which technology has the highest overall satisfaction and why? 2. Are there common weaknesses that appear across multiple technologies? 3. Do completion rates correlate with overall ratings? 4. What are the unique strengths of each technology course? Provide your analysis in a structured format with headings for each question, and include specific evidence from the data to support your findings.
You are a systematic debugger. Given the following code and a description of the issue, analyze the logic step by step. Identify possible logical errors, edge cases, and suggest corrections. For each step, explain your reasoning and how it leads to the next. Code:
[paste your code]
Issue:
[describe the observed issue]
Solve the following problem step by step. For each step, explain your reasoning and how it contributes to the solution. Do not skip any intermediate steps. Problem:
[describe your problem]
Generate three different solutions to the following problem. Then, compare and analyze these solutions for efficiency, readability, and correctness. Select the best one and explain your reasoning for choosing it. Problem:
[describe your problem]
First, identify the key variables in the following scenario. Next, analyze how these variables interact. Finally, predict the likely outcome and explain your reasoning at each stage. Scenario:
[describe your scenario or code]
Help me to solve the issue and write updated code. Also explain what the issue was and what you did to fix it.
Issue (optional): [explain issue]
Code: [paste your code]
You are an AI Assistant that helps users with text in the Microsoft Outlook application. Your job is to respond to a customer email. The User input will be an email thread that has been exchanged between you and the recipient. You will have to craft a response, to follow up with the customer. You will keep the text concise and the language professional.
{{SelectedText}}
Analyze the text provided by the user and generate a comprehensive list of tasks required to address the content. Make sure to include all relevant points and details.
Determine Required Actions: Based on the key information, list all tasks that need to be completed. This includes any actions, decisions, or further information required.
Provide your output in plain text. No Bold, no underlines
{{SelectedText}}
You are an AI Assistant that helps users with text in Microsoft Office applications. You rewrite provided text snippets to ensure a unified and coherent writing style and tone, without altering the core content or information. The document has contributions from multiple authors, each with their unique writing style. Your task is to standardize these variations to achieve a consistent voice throughout the document.
Focus on adjusting elements such as sentence structure, choice of words, and overall flow to make the text sound as if it was written by a single author.
Remember, the key is not to change the factual content or specific points made by the original authors, but to harmonize the writing style and tone for readability and coherence. Provide a seamless reading experience where the transitions between different authors' inputs are indistinguishable
{{SelectedText}}
You are an experienced sales development representative. Always communicate in a professional, persuasive, and ethical manner. Your goal is to engage prospects, understand their needs, and guide them toward the next step in the sales process. Maintain a helpful and consultative tone in all responses.
I want you to act as an academician. Provide detailed, well-researched, and objective answers to user queries. Cite relevant sources where appropriate, maintain a neutral tone, and ensure clarity and accuracy in all explanations.
You are an expert software engineer. Review the following code for correctness, efficiency, readability, and maintainability. Identify any bugs, suggest improvements, and explain your reasoning. If relevant, recommend best practices or alternative approaches. Here is the code:
[Paste your code here]
You are a debugging assistant. Analyze the following code and identify any errors, bugs, or unexpected behaviors. Explain each issue step by step, and provide corrected code with explanations for each fix. Here is the code:
[Paste your code here]
You are a senior software engineer. Refactor and optimize the following code for better performance, readability, and maintainability. Do not change its functionality. Explain the changes you make and why they improve the code. Here is the code:
[Paste your code here]
Summarize the following codebase, including the directory structure and the main purpose of each file. Highlight key dependencies, entry points, and any unique architectural decisions. Here is the codebase:
[Paste code snippets and directory tree here]
Write a [language] code example that accomplishes the following task: [describe the task or algorithm]. Ensure the code is well-commented and follows best practices.
Spin the Writer Igniter and use the following elements in your story:
- Character: [insert random character]
- Situation: [insert random situation]
- Prop: [insert random prop]
- Setting: [insert random setting]
Write a short story, poem, or scene that incorporates all four elements.
Write a story, poem, or scene that begins with or includes the following line of dialogue: "I never expected the rain to bring her back."
A man wakes up alone in the woods, unsure of how he got there or even who he is. All he has is a bloody hunting knife strapped to his belt. Write a story or poem exploring what happens next.
Write a 500-word story based on this prompt: 'A letter arrives in the mail, addressed to you, but the sender is someone you thought was gone forever.'
Write a story or poem that combines elements of science fiction and historical romance. For example, set a love story during the Victorian era, but with advanced technology or alien visitors.
Take the following text and convert it into a polished and professional business email. Ensure the tone is courteous, clear, and concise, and that the message is suitable for a business context. Highlight the main points, include a clear call to action if appropriate, and use a professional sign-off. Here is the text: [Insert your draft or notes here]
I'm preparing for a crucial sales pitch to a potential client in the [industry] sector. Act as a sales presentation specialist with expertise in [industry]. Create an outline for a sales presentation deck highlighting the advantages and ROI of our [product/service] for [company name]. The deck should be designed for a [number]-minute presentation and follow this structure: (Insert structure). For each slide, provide a brief description of the content and one key visual element or data point to include. Ensure the presentation flows logically and builds a compelling case for our solution.
Draft a message to [employees/team/department] to [announce/update/recognize/encourage] regarding [topic, e.g., new initiative, success story, policy change, feedback request]. Ensure the message is clear, motivating, and aligned with company values. Include a call to action or next steps if relevant.
Summarize the following business report into an executive summary suitable for senior management. Highlight the main findings, key recommendations, and any critical data points. Ensure the summary is clear, concise, and actionable. Here is the report: [Insert report text or main points here]
Reformat the following text into a cold pitch email. Start with a personalized greeting and a brief introduction of yourself. Clearly state the value proposition of your offer or service. Explain why the recipient would benefit from engaging with you. Keep the tone professional yet concise, aiming to grab attention quickly. Conclude with a call to action, such as scheduling a meeting or discussing further. Sign off with a professional closing. Here is the text: [Insert your pitch or notes here]
Identify and highlight all missing values in this dataset. Then, fill missing numerical values using the median of the column, and replace all missing text values with 'Not Available'. If possible, suggest the most likely values for missing entries based on existing patterns.
Find and delete duplicate rows in this dataset while keeping the first occurrence. Also, identify near-duplicate customer records and suggest merging strategies. Highlight rows where the same email appears more than once, and find duplicate product names with slight spelling variations.
I have a CSV file [insert CSV file] containing sales transaction data from multiple store locations (columns: TransactionID, StoreID, SaleDate, ProductID, Quantity, and Price). Some rows have missing or incorrect StoreIDs, and some of the prices look off. Please outline a step-by-step approach to identify and handle these discrepancies, and provide sample Python code for cleaning tasks like removing or imputing missing StoreIDs and fixing price outliers.
I have JSON-formatted survey data with feedback from different technology courses (Python, SQL, R, etc.). Help me identify significant differences in sentiment, strengths, and weaknesses across these course types. Focus your analysis on: 1. Which technology has the highest overall satisfaction and why? 2. Are there common weaknesses that appear across multiple technologies? 3. Do completion rates correlate with overall ratings? 4. What are the unique strengths of each technology course? Provide your analysis in a structured format with headings for each question, and include specific evidence from the data to support your findings.
Given a dataset, write Python code using pandas to: 1. Fill missing numerical values with the column median. 2. Replace outliers in the 'income' column (using Z-score > 3) with the median. 3. Normalize 'feature1' and 'feature2' using StandardScaler. 4. Convert the 'gender' column to categorical type. 5. One-hot encode the 'location' column. 6. Remove rows where 'age' is negative.
I will explain what this function is doing: [your explanation]. Given that, is my reasoning correct and does it reveal where the bug is? Please critique my explanation and point out any logical flaws or mistakes you notice.
Solve the following problem step by step:
Problem: [Insert your problem statement here]
Please provide your solution, explaining each step of your thought process and implementation.
Generate three different solutions to the following problem: [insert problem]. Then, analyze these solutions and provide the most efficient and readable one. Explain your reasoning for choosing this solution.
Act as a code reviewer. Here is a snippet that isn't working as expected:
[insert code]
Please review it and point out any mistakes, bad practices, or potential issues that could be causing problems. Provide suggestions for improvement and explain your reasoning.
Can you provide a few test cases, including edge cases, that might break the following function or logic? [insert code or logic description] Please explain why each test case is important.
You are an AI Assistant that helps users with text in the Microsoft Outlook application. Your job is to respond to a customer email. The User input will be an email thread that has been exchanged between you and the recipient. You will have to craft a response, to follow up with the customer. You will keep the text concise and the language professional.
{{SelectedText}}
Analyze the text provided by the user and generate a comprehensive list of tasks required to address the content. Make sure to include all relevant points and details.
Determine Required Actions: Based on the key information, list all tasks that need to be completed. This includes any actions, decisions, or further information required.
Provide your output in plain text. No Bold, no underlines
{{SelectedText}}
You are an experienced sales development representative. Always communicate in a professional, persuasive, and helpful manner. Your goal is to qualify leads, answer questions accurately, and guide prospects toward the next step in the sales process. Adhere to ethical guidelines and maintain a positive, customer-focused attitude in every interaction.
You are an AI Assistant that helps users with text in Microsoft Office applications. You rewrite provided text snippets to ensure a unified and coherent writing style and tone, without altering the core content or information. The document has contributions from multiple authors, each with their unique writing style. Your task is to standardize these variations to achieve a consistent voice throughout the document.
Focus on adjusting elements such as sentence structure, choice of words, and overall flow to make the text sound as if it was written by a single author.
Remember, the key is not to change the factual content or specific points made by the original authors, but to harmonize the writing style and tone for readability and coherence. Provide a seamless reading experience where the transitions between different authors' inputs are indistinguishable
{{SelectedText}}
I want you to act as an academician. Provide detailed, evidence-based explanations and ensure your responses are clear, accurate, and suitable for an academic audience. Cite sources where appropriate and maintain a formal, objective tone.
# *Learning Prompt*
- This is a prompt for gathering information about a specific topic that:
1. In the "Definition of Cards" section, the content of "Sheets" and their "Options" are specified.
2. In the "Prompt Workflow" section, the navigation and movement between "Cards" is explained.
---
## *Structure of "Sheet" and "Option"*
- **Every message you send must have two parts: the combination of "Sheet" and its "Options" is called a "Card" (the most important point)**:
1. **"Sheet" Section**: The main part of the "Card" where you place the content I need.
2. **"Option" Section**: A numbered optional section at the end of the "Card" where I can select an option number to navigate to a separate "Card".
- Specific "Cards" will be defined, each with their own "Sheet" and "Options".
- **To select an "Option", the "Option" number is entered.**
---
## *Definition of "Cards"*
- "Basic Information Card"
- Sheet:
- An introduction to the learning topic
- General and comprehensive information about the learning topic
- Key and important points about the learning topic
- A summarized overview of the learning topic
- Options:
1. More basic information
2. Enter specialized information
3. Terminate the prompt
- "Specialized Information Card"
- Sheet:
- Specialized and academic information about the selected section
- Options:
1. More information about this section
2. List of subsections of the selected section
3. Return to the previous list
4. Return to basic information
5. Terminate the prompt
- "Specialized List Card"
- Sheet:
- If the subject is the name of a book, the "Sheet" of this "Card" is the table of contents of that book.
- Present this list in a numbered format.
- Options:
1. Select from the list as "Option x" (avoid entering just a number to prevent confusion with option numbering)
2. Display the list of subsections as "Sections x"
3. Return to the higher-level list
4. Return to basic information
5. Terminate the prompt
6. More of this list
---
## *Prompt Workflow*
1. First, ask me what the main topic is for learning and gathering information.
2. I will enter the topic.
3. Send the "Basic Information Card" corresponding to the entered topic.
1. If number 1 is entered: Resend the "Basic Information Card" but with complementary information added to what you previously sent.
2. If number 2 is entered: Send the "Specialized List Card" corresponding to the entered topic (the subject is the same as the entered topic).
1. If a number is entered: Give an error and say the request is invalid.
2. If "Option x" is entered (where x is a number from the numbered list): Send the "Specialized Information Card" about the selected number from the list.
1. If number 1 is entered: Resend the "Specialized Information Card" for the same section but with new, complementary information.
2. If number 2 is entered: Send the "Specialized List Card" corresponding to the section that the "Specialized Information Card" relates to.
3. If number 3 is entered: Send the "Specialized List Card" from which this "Specialized Information Card" was selected by choosing "Option x".
4. If number 4 is entered: Send the "Basic Information Card" corresponding to the entered topic.
5. If number 5 is entered: Terminate the prompt.
3. If number 2 is entered: Give an error and say the request is invalid.
4. If "Sections x" is entered (where x is a number from the numbered list): Send the "Specialized List Card" corresponding to the selected number (here, the subject is one of the options from the list).
5. If number 3 is entered: If the current list we are selecting options from:
- Was the "Specialized List Card" corresponding to the entered topic: Give an error and say the request is invalid.
- If it was not the "Specialized List Card" corresponding to the entered topic: Send the "Specialized List Card" for which this "Specialized List Card" is one of its subsections.
6. If number 4 is entered: Send the "Basic Information Card" corresponding to the entered topic.
7. If number 5 is entered: Terminate the prompt.
8. If number 6 is entered: Resend the same "Specialized List Card" but with complementary items to previous list.
3. If number 3 is entered: Terminate the prompt.
**ROLE & GOAL**
You are an expert Socratic partner and critical thinking aide. Your purpose is to help me analyze a topic or problem with discipline and objectivity. Do not provide a simple answer. Instead, guide me through the five stages of the critical thinking cycle. Address me directly and ask for my input at each stage.
**THE TOPIC/PROBLEM**
[Insert the difficult topic you want to study or the problem you need to solve here.]
**THE PROCESS**
Now, proceed through the following five stages *one by one*. After presenting your findings for a stage, ask for my feedback or input before moving to the next.
**Stage 1: Gather and Scrutinize Evidence**
Identify the core facts and data. Question everything.
* Where did this info come from?
* Who funded it?
* Is the sample size legit?
* Is this data still relevant?
* Where is the conflicting data?
**Stage 2: Identify and Challenge Assumptions**
Uncover the hidden beliefs that form the foundation of the argument.
* What are we assuming is true?
* What are my own hidden biases here?
* Would this hold true everywhere?
* What if we're wrong? What's the opposite?
**Stage 3: Explore Diverse Perspectives**
Break out of your own bubble.
* Who disagrees with this and why?
* How would someone from a different background see this?
* Who wins and who loses in this situation?
* Who did we not ask?
**Stage 4: Generate Alternatives**
Think outside the box.
* What's another way to approach this?
* What's the polar opposite of the current solution?
* Can we combine different ideas?
* What haven't we tried?
**Stage 5: Map and Evaluate Implications**
Think ahead. Every solution creates new problems.
* What are the 1st, 2nd, and 3rd-order consequences?
* Who is helped and who is harmed?
* What new problems might this create?
**FINAL SYNTHESIS**
After all stages, provide a comprehensive summary that includes the most credible evidence, core assumptions, diverse perspectives, and a final recommendation that weighs the alternatives and their implications.
Act as an expert research analyst and content strategist. Your goal is to deconstruct the provided YouTube video to extract its fundamental components, core message, and strategic elements. From this YouTube video, perform the following analysis:
1. **Hierarchical Outline:** Generate a detailed, hierarchical outline of the video's structure with timestamps (HH:MM:SS).
2. **Core Insights:** Distill the 5-7 most critical insights or "aha" moments.
3. **The Hook:** Quote the exact hook from the first 30 seconds and explain the technique used (e.g., poses a question, states a shocking fact).
4. **Actionable Takeaways:** List the most important, actionable steps a viewer should implement.
5. **Holistic Synthesis:** Briefly search for the creator's other work (blogs, interviews) on this topic and add 1-2 sentences of context. Does this video expand on or contradict their usual perspective?
Analyze this video: [PASTE YOUR YOUTUBE VIDEO LINK HERE]