This is a curated list of popular and effective prompts to use with OpenAI's GPT-4 language model, ChatGPT. These prompts are designed to optimize the model's performance and help you get the best results possible.
Naming conventions
What | Format | Example |
---|---|---|
Component | MyComponentName |
Button, LoginModal |
Action Type | [VERB]_[NOUN] |
TOGGLE_TODO |
Action Creator | [verb][Noun] |
toggleTodo |
Reducer | set[PathToStateKey] |
setTodosFilter |
Selector | get/is[PathToStateKey] |
getTodosById, isTodoCompleted |
Story | [Feature]Stories |
TodoStories |
This file contains 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
/* CSS Custom Properties */ | |
:root { | |
--font-family: 'Georgia', serif; | |
--font-family-alt: 'Helvetica', Arial, sans-serif; | |
--font-weight: 400; | |
--font-weight-bold: 700; | |
--font-weight-black: 900; | |
/* 3:4 perfect fourth scale */ |
This file contains 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
Backend, once its interfaces (check https://gist.github.com/croraf/ee7017bdda3e3c65881936173df2cbc9) get initialized on startup (src/index.js file), | |
is message driven. | |
Meaning everything that happens is a consequence of receiving a REST message on REST endpoints. | |
(https://order1.herokuapp.com/swagger) | |
Therefore, several functionalities can be defined depending on the REST messages received. | |
As described in interfaces document, each of these messages get processed through 3 layers. | |
Checking the above swagger URL following functionalities can be seen: | |
1. CRUD on restaurants |
This file contains 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
orderme app backend interfaces with other parts of the app in the following ways: | |
1. KOA server | |
a) serves static resources | |
- single HTML template, which gets managed by React JS - single page application | |
- webpack-bundled JS which does everything that is done on frontend | |
- images | |
b) exposes REST API (endpoints) | |
REST API is defined by swagger, and can be explored on exposed swagger ui URL (https://order1.herokuapp.com/swagger). |
This file contains 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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
This file contains 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
// Box Model | |
// ========================================================================== | |
@mixin border-box { | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
A HTML/CSS Class Naming Convention for Scalable/Modular CSS.
This file contains 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
// Sass utilities | |
@import "helpers/variables"; | |
@import "helpers/functions"; | |
@import "helpers/mixins"; | |
@import "helpers/placeholders"; | |
// Vendors and external stylesheets | |
@import "vendors/bootstrap"; | |
@import "vendors/jquery-ui"; |
NewerOlder