mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-27 21:58:02 -08:00
Compare commits
4 Commits
591902fa85
...
4747d22037
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4747d22037 | ||
|
|
7e9e6af408 | ||
|
|
0ee3753e2f | ||
|
|
3e04a5c542 |
@@ -124,6 +124,7 @@ Feel free to take a look. You might learn new things. They have been designed to
|
||||
- [Nginx](tools/nginx.sh)
|
||||
- [PM2](tools/pm2.sh)
|
||||
- [Ubuntu](tools/ubuntu.sh)
|
||||
- [Firebase CLI](tools/firebase_cli.md)
|
||||
</details>
|
||||
|
||||
## 🙌🏼 How to Contribute?
|
||||
|
||||
199
frontend/css.css
Normal file
199
frontend/css.css
Normal file
@@ -0,0 +1,199 @@
|
||||
/* ======================Font Properties======================= */
|
||||
|
||||
Font-Family /* Changes the font family of certain words, sentences,paragraphs, etc. */
|
||||
|
||||
P { font-family: "New Century Schoolbook", Times, serif; }
|
||||
Font-Style /* Changes text: normal, oblique, and italics. */
|
||||
|
||||
H1 { font-style: oblique; }
|
||||
P { font-style: normal; }
|
||||
Font-Variant /* Used to display font in normal or small-caps */
|
||||
|
||||
|
||||
SPAN { font-variant: small-caps; }
|
||||
Font-Weight /* Used to specify the weight of the font. */
|
||||
|
||||
H1 { font-weight: 800; } or P { font-weight: normal; }
|
||||
Font-Size /* Used to modify the size of the displayed font. */
|
||||
H1 { font-size: large; } or P { font-size: 12pt; }
|
||||
LI { font-size: 90%; }
|
||||
STRONG { font-size: larger; }
|
||||
Font /* Used to combine all properties of fonts. */
|
||||
|
||||
P { font: italic bold 12pt/14pt Times, serif; }
|
||||
|
||||
/* ======================Text Properties======================= */
|
||||
|
||||
|
||||
Word-Spacing /* Defines an additional amount of space between words. */
|
||||
P{ word-spacing: 0.4em; }
|
||||
P.words { word-spacing: -0.2em; }
|
||||
|
||||
Letter-Spacing /* Defines an additional amount of space between characters. */
|
||||
H1 { letter-spacing: 0.1em; }
|
||||
P.words { letter-spacing: -0.1em; }
|
||||
|
||||
Text-Decoration /* Allows text to be decorated through one of five properties:underline, overline, line-through, blink, none. */
|
||||
A:link, A:visited, A:active { text-decoration: none; }
|
||||
|
||||
Vertical-Align /* Used to alter the vertical positioning of an inline element,relative to its parent element or to the element's line. */
|
||||
IMG.middle { vertical-align: middle; }
|
||||
IMG { vertical-align: 50%; }
|
||||
.exponent { vertical-align: super; }
|
||||
|
||||
Text-Align /* Used to justify text left, center, right, and justify */
|
||||
H1 { text-align: center; }
|
||||
P.newspaper { text-align: justify; }
|
||||
|
||||
Text-Indent /* Used to specify the amount of indentation prior to the first line of text. */
|
||||
P { text-indent: 5em; }
|
||||
|
||||
Line-Height /* Used to control the spacing between baselines of text */
|
||||
P { line-height: 200%; }
|
||||
|
||||
|
||||
/* ======================Classification Properties ======================= */
|
||||
|
||||
|
||||
List-Style-Type /* Specifies the type of list-item marker, and is used if list-styleimage is none or if image loading is turned off. */
|
||||
LI.square { list-style-type: square; }
|
||||
UL.plain { list-style-type: none; }
|
||||
OL { list-style-type: upper-alpha; } /* A B C D E etc. */
|
||||
OL OL { list-style-type: decimal; } /* 1 2 3 4 5 etc. */
|
||||
OL OL OL { list-style-type: lower-roman; } /* i ii iii iv v etc. */
|
||||
|
||||
List-Style-Image /* Specifies the image that will be used as list-item marker when image loading is turned on, replacing the marker specified in the list-style-type property. */
|
||||
UL.check { list-style-image: url(/LI-markers/checkmark.gif); }
|
||||
UL LI.x { list-style-image: url(x.png); }
|
||||
|
||||
List-Style-Position /* Determines where the marker is placed in regard to the list item. If the value inside is used, the lines will wrap under the marker instead of being indented. outside is default. */
|
||||
UL { list-style-position: inside; }
|
||||
|
||||
|
||||
/* ======================Color and Background Properties ======================= */
|
||||
|
||||
|
||||
Color /* Changes the color of text. */
|
||||
H1 { color: blue; } or H2 { color: #000080; }
|
||||
|
||||
Background-Color /* Sets the background color of an element. */
|
||||
BODY { background-color: white; }
|
||||
H1 { background-color: #000080; }
|
||||
|
||||
Background-Image /* Sets the background image of an element */
|
||||
BODY { background-image: url(/images/foo.gif); }
|
||||
P { background-image: url(http://www.htmlhelp.com/bg.png); }
|
||||
|
||||
Background-Repeat /* Determines how a specified background image is repeated.The repeat-x value will repeat the image horizontally while the repeat-y value will repeat the image vertically. */
|
||||
BODY { background: white url(candybar.gif);
|
||||
background-repeat: repeat-x; }
|
||||
|
||||
Background-Attachment /* Determines if a specified background image will scroll with the content or be fixed with regard to the canvas. */
|
||||
BODY { background: white url(candybar.gif);
|
||||
background-attachment: fixed; }
|
||||
|
||||
Background /* Used to combine all properties of background. */
|
||||
BODY { background: white url(http://www.htmlhelp.com/foo.gif); }
|
||||
BLOCKQUOTE { background: #7fffd4; }
|
||||
P { background: url(../backgrounds/pawn.png) #f0f8ff fixed; }
|
||||
TABLE { background: red url(leaves.jpg) no-repeat bottom right; }
|
||||
|
||||
|
||||
/* ======================Box Properties ======================= */
|
||||
|
||||
|
||||
Margin-Top /* Sets the top margin of an element by specifying a length or a percentage. */
|
||||
BODY { margin-top: 5pt; }
|
||||
|
||||
Margin-Right /* Sets the right margin of an element by specifying a length or a percentage. */
|
||||
P.narrow { margin-right: 50%; }
|
||||
|
||||
Margin-Bottom /* sets the bottom margin of an element by specifying a length or a percentage. */
|
||||
DT { margin-bottom: 3em; }
|
||||
|
||||
Margin-Left /* sets the left margin of an element by specifying a length or a percentage. */
|
||||
h1 { margin-left: 50%; }
|
||||
|
||||
Margin /* Sets the margins of an element by specifying top, bottom, left and right margins -- all either specifying length or percentage. */
|
||||
BODY { margin: 5em; } /* all margins 5em */
|
||||
P { margin: 2em 4em; } /* top & bottom 2em, left & right 4em */
|
||||
DIV { margin: 1em 2em 3em 4em; }
|
||||
|
||||
Padding-Top /* Describes the amount of space between the top border and the content of the selector. */
|
||||
P { padding-top: 20%; }
|
||||
|
||||
Padding-Right /* Describes the amount of space between the right border and the content of the selector. */
|
||||
P { padding-right: 20 px; }
|
||||
|
||||
Padding-Bottom /* Describes the amount of space between the bottom border and the content of the selector. */
|
||||
P { padding-bottom: 5 em; }
|
||||
|
||||
Padding-Left /* Describes the amount of space between the left border and the content of the selector. */
|
||||
P { padding-left: 15 pt; }
|
||||
|
||||
Padding /* Shorthand for the padding-top, padding-right, padding-bottom,and padding-left properties. */
|
||||
h5 { padding: 2em 4em 5em 4em; }
|
||||
|
||||
Border-Top-Width /* Used to specify the width of an element's top border. */
|
||||
P { border-top: 20%; }
|
||||
|
||||
Border-Right-Width /* Used to specify the width of an element's right border. */
|
||||
P { border-right: 20%; }
|
||||
|
||||
Border-Bottom-Width /* Used to specify the width of an element's bottom border. */
|
||||
P { border-bottom: 20%; }
|
||||
|
||||
Border-Left-Width /* Used to specify the width of an element's left border. */
|
||||
P { border-left: 20%; }
|
||||
|
||||
Border-Width /* Used to set the width of an element's border (either allborders, or specifying top border, right border, bottom border,left border). */
|
||||
P { border-width: 20%; }
|
||||
P { border-width: 10px 5px 10px 5px; }
|
||||
|
||||
Border-Style /* Sets style of a border - none, dotted, dashed, solid, double. */
|
||||
P { border-style: dotted; }
|
||||
|
||||
Border-Top /* Sets the width, style, and color of an element's top border. */
|
||||
P { border-top: 10px, red, double; }
|
||||
|
||||
Border-Right /* Sets the width, style, and color of an element's right border. */
|
||||
P { border-right: 10px, red, double; }
|
||||
|
||||
Border-Bottom /* Sets the width, style, and color of an element's bottom border. */
|
||||
P { border-bottom: 10px, red, double; }
|
||||
|
||||
Border-Left /* Sets the width, style, and color of an element's left border. */
|
||||
P { border-left: 10px, red, double; }
|
||||
|
||||
Border /* Sets the width, style, and color of an element's border. */
|
||||
P { border: 10px, red, double; }
|
||||
|
||||
Width /* Each block-level or replaced element can be given a width,specified as a length, a percentage, or as auto. */
|
||||
P { width: 15px; }
|
||||
H1 { width: 35%; }
|
||||
|
||||
Height /* Each block-level or replaced element can be given a height,specified as a length or as auto. */
|
||||
P { height: 15px; }
|
||||
H1 { height: 35%; }
|
||||
|
||||
Float /* Allows text to wrap around an element (left, right, none). */
|
||||
P { float: left; }
|
||||
H1 { float: right; }
|
||||
|
||||
Clear /* Specifies whether an element allows floating elements to its sides (left, right, none). */
|
||||
P { clear: left; }
|
||||
H1 { clear: right; }
|
||||
.foo { clear: none; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
140
tools/firebase_cli.md
Normal file
140
tools/firebase_cli.md
Normal file
@@ -0,0 +1,140 @@
|
||||
# Firebase CLI Guide
|
||||
|
||||
Firebase CLI (Command Line Interface) is a powerful tool that allows developers to interact with Firebase services and manage their Firebase projects directly from the command line. It provides a convenient and efficient way to deploy projects, manage databases, configure authentication, and more, streamlining the development and deployment processes.
|
||||
|
||||
## Installation
|
||||
|
||||
To use the Firebase CLI, you need to have Node.js and npm (Node Package Manager) installed on your system. Follow the steps below to install the Firebase CLI:
|
||||
|
||||
1. Install Node.js and npm by downloading the installer from the [official Node.js website](https://nodejs.org/en/download/) and following the installation instructions for your operating system.
|
||||
|
||||
2. Once Node.js and npm are installed, open your terminal or command prompt and run the following command to install the Firebase CLI globally:
|
||||
|
||||
```
|
||||
npm install -g firebase-tools
|
||||
```
|
||||
|
||||
This command will download and install the Firebase CLI package from the npm registry.
|
||||
|
||||
3. After the installation is complete, you can verify that the Firebase CLI is installed correctly by running the following command:
|
||||
|
||||
```
|
||||
firebase --version
|
||||
```
|
||||
|
||||
If the installation was successful, you will see the version number of the Firebase CLI printed in the terminal.
|
||||
|
||||
Congratulations! You have successfully installed the Firebase CLI.
|
||||
|
||||
## Usage
|
||||
|
||||
The Firebase CLI allows you to interact with Firebase services and manage your Firebase projects from the command line. Here are some common tasks you can perform using the Firebase CLI:
|
||||
|
||||
- Initialize a new Firebase project in your current directory.
|
||||
- Deploy your Firebase project to Firebase hosting.
|
||||
- Manage Firebase Authentication, Realtime Database, Cloud Firestore, Cloud Functions, and other Firebase services.
|
||||
- Configure Firebase project settings.
|
||||
- Interact with Firebase emulators for local development and testing.
|
||||
|
||||
To use the Firebase CLI, open your terminal or command prompt and run the `firebase` command followed by the desired command and options.
|
||||
|
||||
Here's an example of the basic usage:
|
||||
|
||||
```
|
||||
firebase <command> [options]
|
||||
```
|
||||
|
||||
Replace `<command>` with the specific Firebase command you want to execute, and `[options]` with any additional options or flags required for that command.
|
||||
|
||||
For more detailed usage information, you can run the following command:
|
||||
|
||||
```
|
||||
firebase help
|
||||
```
|
||||
|
||||
This command will display the available Firebase commands and provide detailed information about each command.
|
||||
|
||||
## Commands
|
||||
|
||||
Here are the commonly used Firebase CLI commands along with a brief explanation, syntax, and an example for each command:
|
||||
|
||||
- `firebase init`: Initializes a new Firebase project in the current directory.
|
||||
|
||||
- Syntax: `firebase init [options]`
|
||||
- Example: `firebase init hosting` initializes Firebase Hosting for the current project.
|
||||
|
||||
- `firebase deploy`: Deploys your Firebase project to Firebase hosting or other Firebase services.
|
||||
|
||||
- Syntax: `firebase deploy [options]`
|
||||
- Example: `firebase deploy --only hosting` deploys only the Firebase Hosting content.
|
||||
|
||||
- `firebase serve`: Starts local development servers and Firebase emulators.
|
||||
|
||||
- Syntax: `firebase serve [options]`
|
||||
- Example: `firebase serve --only functions,hosting` starts the Firebase emulators for functions and hosting.
|
||||
|
||||
- `firebase login`: Authenticates the Firebase CLI with your Firebase account.
|
||||
|
||||
- Syntax: `firebase login [options]`
|
||||
- Example: `firebase login --no-localhost` initiates an interactive login session without connecting to localhost.
|
||||
|
||||
- `firebase logout`: Logs out from the Firebase CLI.
|
||||
|
||||
- Syntax: `firebase logout [options]`
|
||||
- Example: `firebase logout` logs out the currently authenticated user.
|
||||
|
||||
- `firebase use`: Sets the active Firebase project for the current directory.
|
||||
|
||||
- Syntax: `firebase use <project_id> [options]`
|
||||
- Example: `firebase use my-project` sets "my-project" as the active Firebase project.
|
||||
|
||||
- `firebase functions`: Interacts with Firebase Cloud Functions.
|
||||
|
||||
- Syntax: `firebase functions:command [options]`
|
||||
- Example: `firebase functions:delete [function_name]` deletes all functions that match the specified name in all regions.
|
||||
|
||||
- `firebase database`: Interacts with Firebase Realtime Database.
|
||||
|
||||
- Syntax: `firebase database:command [options]`
|
||||
- Example: `firebase database:get /users` retrieves data from the Firebase Realtime Database.
|
||||
|
||||
- `firebase firestore`: Interacts with Firebase Cloud Firestore.
|
||||
|
||||
- Syntax: `firebase firestore:command [options]`
|
||||
- Example: `firebase firestore:delete collection/document` deletes a document from the Firestore database.
|
||||
|
||||
- `firebase auth`: Interacts with Firebase Authentication.
|
||||
|
||||
- Syntax: `firebase auth:command [options]`
|
||||
- Example: `firebase auth:export users.csv` exports user data to a CSV file.
|
||||
|
||||
- `firebase hosting`: Interacts with Firebase Hosting.
|
||||
|
||||
- Syntax: `firebase hosting:command [options]`
|
||||
- Example: `firebase hosting:disable` disables Firebase Hosting for the current project.
|
||||
|
||||
- `firebase remoteconfig`: Interacts with Firebase Remote Config.
|
||||
|
||||
- Syntax: `firebase remoteconfig:command [options]`
|
||||
- Example: `firebase remoteconfig:get template` retrieves the Remote Config template.
|
||||
|
||||
- `firebase ext`: Interacts with Firebase Extensions.
|
||||
|
||||
- Syntax: `firebase ext:command [options]`
|
||||
- Example: `firebase ext:install firebase/delete-user-data` installs the Firebase Extension named "firebase/delete-user-data".
|
||||
|
||||
- `firebase appdistribution`: Interacts with Firebase App Distribution.
|
||||
|
||||
- Syntax: `firebase appdistribution:command [options]`
|
||||
- Example: `firebase appdistribution:testers:add` Adds testers to the project.
|
||||
|
||||
- `firebase use --add`: Adds an existing Firebase project to the current directory
|
||||
|
||||
- Syntax: `firebase use --add`
|
||||
- Example: `firebase use --add` interactively adds an existing Firebase project.
|
||||
|
||||
- `firebase projects:create`: Creates a new Firebase project.
|
||||
- Syntax: `firebase projects:create [options]`
|
||||
- Example: `firebase projects:create --display-name "My Project"` creates a new Firebase project with the given display name.
|
||||
|
||||
These are just a few examples of the available commands. You can explore more commands and their options by running `firebase help` or visiting the [official Firebase CLI documentation](https://firebase.google.com/docs/cli).
|
||||
Reference in New Issue
Block a user