DailyLife

ChatGPT Generative AI Prompts

Code Generation

As a [programming language] engineer working on a health booking system, I need a [programming language] code snippet to generate a QR code that users can use to confirm their appointments. Here are the requirements: - [define each requirement in a bullet point] Can you provide a [programming language] code snippet that meets these requirements and follows best practices for error handling and performance?


Code Review

I am a [programming language] developer working on a [describe the project]. Here is a piece of [programming language] code I wrote for [specific task]: [put the code here] Can you review it with a focus on best practices, potential performance improvements, and maintainability, especially considering that this will be part of a large-scale project?


Database Optimisation

As a [programming language] engineer working on [describe the project] using [programming language] and [database system], I am trying to optimize a query that [specific task]. The system will be handling a large number of requests, so performance is critical. Here is the query: [put the code here] This query needs to be optimized to handle high traffic and ensure that we don't encounter performance bottlenecks. Could you suggest ways to improve the performance, such as adding appropriate indexes, query restructuring, or even tweaking the way it is being executed on the .NET side?


Debugging Assistance

As a [programming language] engineer, I’m working on a [describe the project] using [programming language]. I am encountering an issue [describe the issue] while trying to [specific task].
Here is the code snippet:
[put the code here]
Can you help diagnose the root cause and suggest a fix by considering coding best practices, security, performance, and scalability?


Design Pattern

I am a [programming language] engineer working on [describe the project]. I am implementing the [design pattern] for [describe the function]. The goal is to ensure that the pattern is applied correctly and that the code remains maintainable and easy to extend by the team. Here is the code snippet: [put the code here] Could you provide guidance on how to structure these classes and interfaces effectively to adhere to best practices, ensure scalability, and maintain a clean separation of concerns?


Refactoring

I am a [programming language] engineer working on refactoring the [describe the project] built with [programming language]. The current code for [specific task] feels cluttered and hard to maintain. I want to make it more readable and easier for other team members, especially junior developers, to work with. Here is the code snippet: [put the code here] I am aiming for cleaner, more maintainable code while adhering to best practices like reducing redundancy. Can you suggest how I can refactor this code to achieve that?


Writing Unit Tests

I am a [programming language] engineer working on an [specific task] for a [describe the project] . I need to write comprehensive unit tests to ensure this method functions correctly in all scenarios. Here is the method: [put the code here] I'm using [unit test libraries] for testing and want to cover edge cases. Could you help me design test cases that account for these scenarios, including mocking the database context?


ChatGPT Super Command!

Article Summarizer

This command extracts the key points from an article, providing a concise bullet point list of the most important information. It’s perfect for quickly understanding long articles.

Summarize this article into a bullet point list of the most important information: [paste article].


Book Summary Generator

This command summarizes the key frameworks and takeaways from a specified book into a comprehensive but easy-to-understand summary. It helps in grasping the essential concepts and insights from the book quickly.

Summarize the key frameworks and takeaways from the book [title] into a comprehensive but easy-to-understand summary.


Brand Narrative Crafting

This command assists in developing a compelling brand narrative using the brand pyramid model. It helps in creating a structured and impactful story for a company or personal brand by defining key elements and values.

[Provide company or personal brand description]. Help me craft a compelling brand narrative using the brand pyramid model.


Bullet Points to Paragraph Conversion

This command converts a list of bullet points into a coherent paragraph, using a specified tone and mimicking the style of your favorite author. It’s ideal for creating polished, narrative text from concise points.

Turn the following bullet points into a paragraph, using the following tone and mimicking the style of [insert your favorite author]: [paste bullet points].


Cover Letter Generator

This command helps you craft a compelling cover letter for a specific job position, highlighting your relevant experience and passion for the role. It’s useful for making a strong impression on potential employers.

Create a compelling cover letter for the position of [job title] at [company name], showcasing my relevant experience and passion for the role: [insert relevant experience].


Creativity Enhancement

This command introduces various creative exercises and techniques designed to unlock inner creativity and generate new ideas within a specific context. It’s great for brainstorming and creative problem-solving.

Introduce me to creative exercises and techniques that will help unlock my inner creativity and generate new ideas in [insert specific context].


Elevator Pitch Generator

This command assists in creating a concise and impactful 30-second elevator pitch based on your mission and niche. It’s designed to effectively communicate the essence of your product, service, or personal brand.

Based on [insert your mission and niche], help me craft a 30-second elevator pitch for [product, service, or personal brand].


Idea Brainstormer

This command helps generate 20 creative and unique ideas for a given topic. It’s useful for exploring new concepts, projects, or approaches when you need fresh inspiration.

Brainstorm 20 unique ideas for the following [topic].


Improvement Identification with Jobs To Be Done

This command uses the Jobs To Be Done framework to analyze and identify areas for improvement in your product or service. It helps in understanding customer needs and optimizing your offering.

Use the Jobs To Be Done framework to help me identify areas for improvement in my [product or service].


Memory Tools for Studying

This command generates a list of memory techniques and tools specifically tailored to help you remember and recall important information for your subject of study.

I am studying [insert subject]. Provide a list of memory tools or techniques to help me remember and recall important information related to this subject.


Multi-Channel Follow-Up Strategy

This command outlines a follow-up strategy using telephone, WeChat, and other channels to significantly increase the conversion rate. It focuses on improving post-sales engagement to boost overall effectiveness.

After the sales visit, follow up with telephone, WeChat, and other channels to increase the conversion rate by 500%. [Good example]


Pain Points and Solutions Analysis

This command identifies the top 10 pain points in a specific industry, provides 5 solutions for each pain point, and includes 3 unique business ideas for each solution. It’s useful for understanding industry challenges and brainstorming innovative ideas.

For the [industry], list the top 10 pain points. Provide 5 solutions for each pain point, and include 3 unique business ideas for each solution.


Personalized Cold Outreach Message

This command generates a customized cold outreach message for potential clients within a specific industry, focusing on your unique value proposition. It’s designed to effectively communicate your offer and engage prospects.

Write a personalized cold outreach message for potential clients in the [industry], highlighting [our unique value proposition].


Problem-Solving Guide

This command provides a detailed, step-by-step systematic approach to solving a specific problem or challenge. It’s ideal for breaking down complex tasks or overcoming obstacles with clear guidance.

Share a step-by-step systematic approach for solving [specific problem or challenge].


Product Launch Strategy Developer

This command helps you develop a product launch strategy using the product launch formula. It focuses on generating excitement and increasing sales by leveraging effective strategies and tactics.

Describe your product and target audience. Assist me in developing a product launch strategy using the product launch formula to generate excitement and increase sales.


Prompt Generator

This command generates 10 unique prompts to help accomplish a specific work or task. It’s ideal for brainstorming and guiding you through various aspects of the task at hand.

You are a ChatGPT prompt generator. Generate 10 unique prompts that will help me accomplish [work or task].


Root Cause Analysis with 5 Whys

This command guides you through the process of applying the 5 Whys technique to identify the root cause of a specific problem or situation. It’s useful for uncovering underlying issues and finding effective solutions.

Guide me through applying the 5 Whys technique to identify the root cause of [specific problem or situation].


Sales Script Designer

This command helps design a persuasive sales script for your product using the Sandler sales system. It’s tailored to effectively communicate your product’s value and engage potential customers.

[Briefly describe your product or service]. Using the Sandler sales system, help me design a persuasive sales script for my product.


Simplified Explanation for Kids

This command breaks down complex topics into simple, easy-to-understand language tailored for a 10-year-old. It’s perfect for learning about complicated subjects in a clear and approachable way.

I'm only 10 years old. Please explain [complex topic] so I can clearly understand it.


Table Creator and Exporter

This command generates a table from a pasted list with specified columns and provides an option to export the table as a CSV file. It's useful for organizing data and saving it in a structured format.

Create a table from the following pasted list with these columns: [Name, Category, Description]. Then allow me to export the table as a CSV file: [paste item list].


Text Proofreading and Editing

This command reviews a given text for spelling and grammar errors, making the sentences clear, accurate, and well-structured. It’s ideal for polishing written content to ensure it’s error-free and easy to understand.

Check the following text for spelling and grammar errors. Make the sentences clear and accurate: [paste your writing].


Tone Changer

This command allows you to adjust the tone of a given text to match a specific style, such as formal, concise, sarcastic, friendly, or persuasive. It's ideal for tailoring your message to different audiences or contexts.

Change the tone of the following text to be more [direct/formal/informal/concise/sarcastic/friendly/confident/persuasive/enthusiastic/professional]: [paste text].


Trust-Building Strategies for Telemarketing

This command provides 10 effective ways to quickly build trust with customers during telemarketing calls. It’s designed to enhance customer relationships and improve the effectiveness of telemarketing efforts.

Provide 10 ways to quickly build trust with customers in telemarketing. [Enter product details]


Web Marketing Campaign Development

This command guides you through developing a web-wide marketing campaign based on the See-Think-Do-Care framework. It helps in creating a comprehensive strategy to engage your target audience effectively.

[Briefly describe your target audience and product or service]. Guide me to developing a web-wide marketing campaign based on the See-Think-Do-Care framework.


Git Command-Line Tricks

Interactive Add

This command allows you to stage parts of a file instead of the entire file. This is super helpful when you only want to commit certain changes in a file while leaving the rest for later.

Use this when you're working on multiple features in one file but want to commit them separately!

git add -p


Undo the Last Commit

Made a mistake in your last commit? No problem. This command undoes your last commit but keeps the changes in your working directory, so you can easily fix the issue.

Use --soft if you want to keep the changes; use --hard if you want to undo everything, including your local changes.

git reset --soft HEAD~1


Check Your Branch's Upstream Status

This command fetches all updates from the remote and prunes (deletes) references to branches that have been deleted from the remote.

Run this periodically to avoid clutter in your branch list, especially when working in large teams.

git fetch --all --prune


Quick Commit Fix

Forgot to add a file or made a typo in your commit message? git commit --amend lets you update the last commit without creating a new one.

This is great for squashing small mistakes without polluting your Git log with unnecessary commits.

git commit --amend


Stash Your Work

Got to switch branches but don't want to lose your current changes? Stashing lets you save your work without committing it, allowing you to return to it later.

Use git stash save "description" to add a description so you can quickly identify your stashes later.

git stash


Pop Your Stash

When you're ready to get back to your stashed work, you can "pop" it back into your working directory.

Use git stash apply if you want to apply the stash without removing it.

git stash pop


Cherry-Picking Commits

Need a specific commit from another branch? Cherry-picking lets you apply it to your current branch without merging the entire branch.

This is especially useful when you need to backport bug fixes or small features.

git cherry-pick 


Clean Up Local Branches

Once you're done with a feature, don't let old branches linger. Clean them up with this simple command.

Use git branch -D if you need to force-delete a branch that hasn't been merged yet.

git branch -d 


View File History

Track the evolution of a specific file with git log -- . This shows you all the commits that affected that file.

Add --stat to see more detailed information about changes.

git log -- 


Blame a Line of Code

Want to know who wrote a specific line of code? git blame gives you a line-by-line history of who changed what in a file.

Combine this with git log -- to get a more detailed history of changes.

git blame


Find the Source of a Bug

This powerful tool performs a binary search through your commit history to find the commit that introduced a bug.

Use it in complex projects where you can't easily pinpoint when things broke.

git bisect start
git bisect bad
git bisect good 


Abort a Merge

If you've started a merge and things aren't going as planned, this command will abort the merge and return you to your previous state.

Always make sure your working directory is clean before attempting a merge.

git merge --abort


Search Commit Messages

Looking for a specific commit message? Use git log --grep to search through commit messages.

Combine this with git log --author to find commits by specific developers.

git log --grep="search term"


Tagging a Commit

Tags are useful for marking specific points in your Git history, such as releases.

Use lightweight tags (git tag ) when you don't need additional metadata.

git tag -a v1.0 -m "Version 1.0 release"


Hard Reset to Clean the Workspace

Need to get rid of untracked files and directories quickly? This command wipes them out, leaving only files under version control.

Use with caution — make sure you won't need those untracked files later!

git clean -fd


View All Git Operations

If you've ever messed up your Git history, git reflog is your safety net. It shows a log of all operations on your repository, allowing you to recover lost changes.

Use this when you think all hope is lost after a bad reset or rebase!

git reflog


Squash Commits

Want to clean up your commit history before pushing? Squashing commits lets you combine several into one for a neater history.

This is ideal for combining multiple small fixes into one clear commit before pushing.

git rebase -i HEAD~


Revert a Commit

Need to undo a specific commit without affecting your entire history? git revert creates a new commit that undoes the changes from the specified commit.

git revert 


See a Graph of Your Branches

This command gives you a visual overview of your branch history, making it easier to see merges, branches, and commits.

git log --graph --oneline --all





Mathematical Symbols

Plus - +

Minus -

Multiplication - ×

Division - ÷

Percent - %

Equals - =

Not Equal -

Less Than - <

Greater Than - >

Less Than or Equal To -

Greater Than or Equal To -



Misc. Symbols

Ampersand - &

At Symbol - @

Hash - #

Asterisk - *

Underscore - _

Tilde - ~

Pipe - |

Backslash - \

Forward Slash / Or - /

Degree - °

Copyright - ©

Registered Trademark - ®

Trademark -



Periodic Table

  • HHydrogen
  • HeHelium
  • LiLithium
  • BeBeryllium
  • BBoron
  • CCarbon
  • NNitrogen
  • OOxygen
  • FFluorine
  • NeNeon
  • NaSodium
  • MgMagnesium
  • AlAluminium
  • SiSilicon
  • PPhosphorus
  • SSulfur
  • ClChlorine
  • ArArgon
  • KPotassium
  • CaCalcium
  • ScScandium
  • TiTitanium
  • VVanadium
  • CrChromium
  • MnManganese
  • FeIron
  • CoCobalt
  • NiNickel
  • CuCopper
  • ZnZinc
  • GaGallium
  • GeGermanium
  • AsArsenic
  • SeSelenium
  • BrBromine
  • KrKrypton
  • RbRubidium
  • SrStrontium
  • YYttrium
  • ZrZirconium
  • NbNiobium
  • MoMolybdenum
  • TcTechnetium
  • RuRuthenium
  • RhRhodium
  • PdPalladium
  • AgSilver
  • CdCadmium
  • InIndium
  • SnTin
  • SbAntimony
  • TeTellurium
  • IIodine
  • XeXenon
  • CsCaesium
  • BaBarium
  • La-LuLanthanide
  • HfHafnium
  • TaTantalum
  • WTungsten
  • ReRhenium
  • OsOsmium
  • IrIridium
  • PtPlatinum
  • AuGold
  • HgMercury
  • TlThallium
  • PbLead
  • BiBismuth
  • PoPolonium
  • AtAstatine
  • RnRadon
  • FrFrancium
  • RaRadium
  • Ac-LrActinide
  • RfRutherfodum
  • DbDubnium
  • SgSeaborgium
  • BhBohrium
  • HsHassium
  • MtMeitnerium
  • DsDamstadium
  • RgRoentgenium
  • UubUnunbium
  • UutUnuntrium
  • UuqUnunquadium
  • UupUnunpentium
  • UuhUnunhexium
  • UusUnunseptum
  • UuoUnunoctium
  • CSolid
  • HgLiquid
  • HGas
  • RfUnknown
  • Alkadi metals
  • Lanthanoids
  • Actinoids
  • Poor metals
  • Noble gases
  • Transition metals
  • Other non-metals
  • Alkadine earth metals


Punctuation Marks

Dot / Point / Period - .

Comma - ,

Question Mark - ?

Exclamation Mark - !

Colon - :

Semicolon - ;

Quotation Marks - " " (double), ' ' (single)

Apostrophe - '

Parentheses - ( )

Brackets - [ ]

Braces - { }

Hyphen - -

Dash - (em dash), (en dash)

Ellipsis -



为什么水在地球上几十亿年都不过期,但放到瓶子里很快就过期?

水被誉为生命之源,没有水,也就不会有地球上多姿多彩的生命。水在自然界中已经存在了四十多亿年,地球生命都离不开这些水。然而,人类一旦把水装到瓶子里,过一两年就会过期。而如果瓶装水开封之后,过一两天就会过期。


那么,为什么瓶装水很快就会过期,而地球上的水几十亿年也不会过期呢?


早在40多亿年前,地球上就已经出现了由液态水组成的海洋。虽然某些化学过程也会产生水,但目前地球上的水大部分都非常古老,大都是来自于最初的海洋。因为水循环是物理过程,不会改变水的组成。即便经过数十亿年,大自然中的水也不会过期


另一方面,之所以水装到瓶子中会过期,是因为水中出现了对人体有害的物质,并不是水分子本身变质了。目前,装水的瓶子大都是用聚对苯二甲酸乙二醇酯(PET),这是一种高分子化合物。如果时间放久了,PET会老化,低分子化合物会被释放到水中,这是水变质的一个主要原因。除此之外,如果瓶装水的密封性不好,水中也会容易滋生微生物,从而污染水体。


如果瓶装水的密封性做得非常好,并且经过严格杀菌消毒处理,而且盛放材质不会降解,那么水是不会过期的。因为水分子本身非常稳定,它们在自然情况下不会改变化学性质。


在自然界中,如果水是死的,它们必然也会变质,因为水中非常容易滋生微生物。科学家曾经发现过20亿年前的地下水,虽然这些水中没有微生物,但其中富含矿物以及金属,这样的水也是不能喝的。如果水是流动的,则不容易滋生微生物,因为水具有自净能力。


死水的含氧量较低,有机物很难分解,从而滋生厌氧生物,使得水质变坏。而水在流动过程中,有助于氧气的溶解,从而提升水中的含氧量,有助于分解有机物,从而减少厌氧生物的生长,保持水质清洁,这就是流水不腐的原因。



内臟有多乾净 臉蛋就有多漂亮

黑眼圈


原因: 如果黑眼圈發黑,眼神無光,那就是腎負擔太重。

治療: 少吃鹽、糖、咖啡、來點蒲公英。


皺紋



原因: 額頭皺紋增加,説明肝臟負重過多。

治療: 戒烟、戒酒、多喝水。


臉色



原因: 臉色發黃,發黑,説明身體缺氧,肺功能失常。

治療: 多外出散步,呼吸新鮮空氣,多吃蔬菜。


鼻子



原因: 鼻子通紅,説明心臟超出負荷了。

治療: 應該立刻放鬆休息,並少吃脂肪含量高的食物。