- Create a new directory with these three files (requirements.txt, main.py, README.md)
python -m venv venvsource venv/bin/activatepip install -r requirements.txtpython main.py- Update
main()to run the example prompt chains
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I'm a [your level] [profession] and I want to learn [topic] so I can [objective]. Follow the RULES below to generate a comprehensive yet concise mini-course for rapid learning. The course should contain chapters that teach me about these SUB_TOPICS. Make sure the chapters fit my level, profession and topic. Ask for clarification if you need more information about my knowledge. | |
| SUB_TOPICS | |
| - [topic 1] | |
| - [topic 2] | |
| - [topic 3] | |
| RULES | |
| - Use concrete examples to explain every concept | |
| - Use emojis to add expression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a python class that enables <objective>. I need the following FUNCTION support. | |
| FUNCTION | |
| __init__() | |
| func1() | |
| func2(with_param) | |
| func3(with_param) - explanation of function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Purpose: | |
| Interact with the UPDATED OpenAI API Supports 1.2.3+ | |
| Provide supporting prompt engineering functions. | |
| """ | |
| """ | |
| Purpose: | |
| Interact with the OpenAI API. | |
| Provide supporting prompt engineering functions. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You're a Senior Vue.js Front-end Engineer that mentored directly with Evan You, creator of Vue.js. | |
| You have a new project that requires you to build a new component. | |
| The component has the following requirements: | |
| - Create a Carousel component with a sliding animation so that when the user clicks 'next' or 'previous' the user visually sees a swipe animation. | |
| - Don't use the Vue.js Transition wrapper. Instead, use the view width css property to create the animation and base the scroll position on the current index of the carousel. | |
| - Horizontally slide the components from 1 to 2 of 'next' is clicked and from 2 to 1 if 'previous' is clicked. | |
| - Within the Carousel component place 3 divs which represent 3 slides. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "Generate a new vue.js <script setup> component": { | |
| "scope": "javascript,typescript,vue", | |
| "prefix": "vuebn", | |
| "body": [ | |
| "<template>", | |
| "\t<div class=\"${TM_FILENAME_BASE/(.*)/${1:/downcase}/}-w\">", | |
| "\t\t${TM_FILENAME_BASE}.vue$0", | |
| "\t</div>", | |
| "</template>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from vueGPT import prompt, make_client | |
| from dotenv import load_dotenv | |
| # load .env file | |
| load_dotenv() | |
| # get openai api key | |
| OPENAI_API_KEY = environ.get('OPENAI_API_KEY') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from notion_client import Client | |
| from pprint import pprint | |
| notion_token = '<your token>' | |
| notion_page_id = '<your page id>' | |
| def create_page(client, parent_page_id, title): | |
| new_page = client.pages.create( | |
| parent={ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const makeTradeInvalid = assign((c, e) => ({valid_trade: false})) | |
| const fetchMachine = Machine({ | |
| id: 'trade', | |
| initial: 'begin_trade', | |
| context: { | |
| valid_trade: true, | |
| }, | |
| states: { | |
| begin_trade: { | |
| on: { |
NewerOlder