โ Visiual-Studio-Basic-Settings:
โ Github repository clone rule
PROMPT=''
PROMPT='$'
PROMPT='%1~ $ '
PROMPT='%B%1~ $ '%b
PROMPT='%B%F{cyan}%1~%f$ %b'
PROMPT='%B%F{cyan}%1~%f %F{178}$%f %b'
command + shift + . -->show the hidden File.
and paste the line:
PROMPT='%B%F{cyan}%1~%f %F{178}$%f %b'
โ ๐๐ข๐ฌ๐ข๐ฎ๐๐ฅ-๐๐ญ๐ฎ๐๐ข๐จ-๐๐๐ฌ๐ข๐-๐๐๐ญ๐ญ๐ข๐ง๐ ๐ฌ:
1. Live Server - ritwik dey
2. ES Lint - Dirk Baeumer
3. Prettier - Code formatter - Esben Petersen
4. vscode-icons - VSCode Icons Team
5. Path Autocomplete - Mihai Vilcu
6. Turbo Console Log - ChakrounAnas
7. ES7 React/Redux/GraphQL/React-Native snippets - dsznajder
8. Dracula Official - Dracula Theme
9. Auto Rename Tag - Jun Han
10. Andromeda - Eliver Lara
11. Emoji Snippets - Devzstudio
12. Community Material Theme - Mattia Astorino
13. code-snippet--screenshort tool
๐ผ ๐๐๐ซ๐๐๐ง๐๐๐ฌ๐ญ --> ๐๐จ๐ซ ๐ฆ๐๐ค๐๐ข๐ง๐ ๐ฏ๐ข๐๐๐จ๐ฌ
๐ญ. ๐ท๐ฒ๐น๐น๐๐ณ๐ถ๐๐ต
๐ฎ. ๐๐ผ๐ฏ๐ฎ๐น๐ ๐ฎ
๐ฏ. ๐ฆ๐๐ฏ๐น๐ถ๐บ๐ฒ ๐ง๐ฒ๐
๐
4. ๐๐ง๐๐ซ๐จ๐ฆ๐๐๐
5. ๐ฑ๐ฐ๐ผ๐ฑ๐ฒ ๐ง๐ต๐ฒ๐บ๐ฒ
6. Make app theme
1. Auto Rename Tag
2. file-icons
3. Bracket Pair Colorizer 2
4. Dummy Text Generator
5. code snapshort
6. tab nine
1. word warp
2. mouse wheel
go to code--> preferace==> user snippent
JavaScript:
console log = cons(and hit enter)
document.write(); = document(and hit enter)
1. open command palettle: ๐๐ญ๐ซ + ๐ฌ๐ก๐ข๐๐ญ + ๐ฉ
2. open terminal : ๐๐ญ๐ซ + ๐ฌ๐ก๐ข๐๐ญ + `
3. Move line down or up : ๐๐ฅ๐ญ๐ซ + ๐๐ซ๐ซ๐จ๐ฐ ๐ฎ๐ฉ ๐จ๐ซ ๐๐จ๐ฐ๐ง
4. Copy line down : ๐๐ญ๐ซ + ๐
5. Make multiple div: ๐๐ข๐ฏ.๐๐จ๐ฑ.*๐ ๐๐ง๐ ๐ฉ๐ซ๐๐ฌ๐ฌ ๐๐ง๐ญ๐๐ซ
6. Use multiple cursor: ๐๐ฅ๐ญ + ๐ฆ๐จ๐ฎ๐ฌ๐
7. Find something|ReplaceClass: ๐๐ญ๐ซ + ๐
```
๐ง๐จ๐๐ ๐ฃ๐ฌ
๐ก๐ญ๐ญ๐ฉ๐ฌ://๐ง๐จ๐๐๐ฃ๐ฌ.๐จ๐ซ๐ /๐๐ง/
๐จ๐ฉ๐๐ง ๐ญ๐๐ซ๐ฆ๐ข๐ง๐๐ฅ
๐ง๐จ๐๐ --๐ฏ๐๐ซ๐ฌ๐ข๐จ๐ง
๐ง๐ฉ๐ฆ --๐ฏ๐๐ซ๐ฌ๐ข๐จ๐ง
๐๐ ~ ๐๐๐ฌ๐ค๐ญ๐จ๐ฉ
๐๐ฅ๐๐๐ซ
๐ฉ๐ฐ๐
๐ง๐ฉ๐ฑ ๐๐ซ๐๐๐ญ๐-๐ซ๐๐๐๐ญ-๐๐ฉ๐ฉ ๐ฆ๐ฒ-๐๐ฉ๐ฉ
๐๐ ๐ฆ๐ฒ-๐๐ฉ๐ฉ
๐ง๐ฉ๐ฆ ๐ฌ๐ญ๐๐ซ๐ญ
๐๐จ ๐จ๐ฉ๐๐ง ๐ฏ๐ข๐ฌ๐ฎ๐๐ฅ ๐ฌ๐ญ๐ฎ๐๐ข๐จ ๐๐จ๐๐:
๐๐จ๐๐ .
1. nodemon globally install
2. mongodb atlas user, access
3. Network access (ip address allow)
1. install mongodb, express, cors, dotenv
2. import (require), mongodb
3. copy uri (connection string)
4. create the client (copy code from atlas)
5. Create or get database access credentials (username, password)
6. create .env file and add DB_USER and DB_PASS as environment variable
7. Make sure you require (import) dotenv
8. Convert URI string to a template string.
9. Add DB_USER and DB_PASS in the connection URI string.
10. Check URI string by using console.log
11. Create async function run and call it by using run().catch(console.dir)
12. add try and finally inside the run function.
13. comment out await client.close() to keep the connection alive
14. add await client.connect(); inside the try block
15. use a console.log after the client.connect to ensure database is connected
const express = require("express");
const { MongoClient } = require("mongodb");
require("dotenv").config();
const app = express();
const port = process.env.PORT || 5000;
const uri = `mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASS}@cluster0.swu9d.mongodb.net/myFirstDatabase?retryWrites=true&w=majority`;
console.log(uri);
const client = new MongoClient(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
async function run() {
try {
await client.connect();
console.log("database connected");
} finally {
// await client.close()
}
}
run().catch(console.dir);
app.get("/", (req, res) => {
res.send("Hello World!");
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});
โ ๐๐ข๐ญ๐ก๐ฎ๐ ๐ซ๐๐ฉ๐จ๐ฌ๐ข๐ญ๐จ๐ซ๐ฒ ๐๐ฅ๐จ๐ง๐ ๐ซ๐ฎ๐ฅ๐
1. git clone --bare proHero-htpps/link
2. cd (and go to that clone .git folder)
3. git push --mirror my-htpps/link
4. git remote -v
5. git remote set-url origin my-htpps/link
๐๐ฅ๐ฅ ๐ซ๐ข๐ ๐ก๐ญ ๐ซ๐๐ฌ๐๐ซ๐ฏ๐๐ ๐๐ฒ ๐๐๐ฉ๐ฉ๐ ๐ฌ๐๐ก๐ | ๐๐ฌ๐ ๐ข๐ง ๐๐๐ |๐๐๐๐๐