Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
550fa98
Merge pull request #5 from Sonichigo/main
Sonichigo Sep 30, 2021
3e90bbc
Update README.md
darkin424 Oct 1, 2021
ef4aa20
:rocket: Added Web 3.0 Resource
kkhitesh Oct 1, 2021
b96b198
Merge pull request #7 from kkhitesh/patch-1
Sonichigo Oct 1, 2021
05db862
Merge pull request #6 from darkin424/main
Sonichigo Oct 1, 2021
65b9db0
Added Deep Learning Resource
CodingBlood Oct 1, 2021
9ac7eb0
added node express
mayankjain25 Oct 1, 2021
a7a7ebd
Javascript Learning resource
shm-dtt Oct 1, 2021
97e80e6
Ian Goodfellow, Yoshua Bengio, Aaron Courville - Deep Learning (2017,…
eshaananand Oct 1, 2021
001cf6e
Merge pull request #12 from eshaananand/main
Sonichigo Oct 2, 2021
64e09f7
Merge pull request #10 from shm-dsgn/main
Sonichigo Oct 2, 2021
4ac80aa
Merge pull request #9 from mayankjain25/main
Sonichigo Oct 2, 2021
6586cf1
Merge pull request #8 from CodingBlood/main
Sonichigo Oct 2, 2021
3afb80b
ADD PostgreSQL
king-rohit777 Oct 2, 2021
c07ba52
Updated Readme
king-rohit777 Oct 2, 2021
9135039
Added book for OOP in C++
SaniyaBhargav Oct 2, 2021
fd2e3b6
frontend book added
tmahima Oct 2, 2021
1796a2e
Front-end book added
Sibananda-Sahu17 Oct 2, 2021
dd48086
Frontend book added
Nitin-45 Oct 2, 2021
3d27634
Merge pull request #16 from tmahima/main
king-rohit777 Oct 2, 2021
b2dc171
Merge pull request #13 from SaniyaBhargav/CPP
king-rohit777 Oct 2, 2021
341427f
Merge pull request #15 from Sibananda-Sahu17/main
king-rohit777 Oct 2, 2021
5ab3aef
Merge pull request #14 from Nitin-45/main
king-rohit777 Oct 2, 2021
6a45d79
Added a OOP learning resource
Mithileshmishra Oct 2, 2021
ce65e71
Merge pull request #18 from Mithileshmishra/main
king-rohit777 Oct 2, 2021
568c3f4
Two Sum problem solution of leetcode
Mithileshmishra Oct 2, 2021
4530f92
Merge pull request #19 from Mithileshmishra/patch-1
king-rohit777 Oct 2, 2021
d5b030b
Revert "Two Sum problem solution of leetcode"
Sonichigo Oct 3, 2021
3eb0716
Merge pull request #21 from Alphasians/revert-19-patch-1
Sonichigo Oct 3, 2021
9062a08
Database Book Added
Piyush4455 Oct 3, 2021
fee39ea
Merge pull request #22 from Piyush4455/main
Sonichigo Oct 3, 2021
cba53d7
DBMS book added
anushkabar Oct 3, 2021
751185e
Merge pull request #23 from anushkabar/main
king-rohit777 Oct 3, 2021
4462532
Added books on machine learning
AtigPurohit Oct 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Backend/NodeJS/Node Express.pdf
Binary file not shown.
39 changes: 39 additions & 0 deletions Backend/PostgreSQL/PostgreSQL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
> SEMI COLON IS IMPORTANT

## To start the SQL server

1. psql -U postgres -h localhost
2. Enter the password

## Create a new User for Database

1. CREATE USER <user_name> WITH PASSWORD <'password'>

## Create a new User for Database and grant all privilegs

1. CREATE DATABASE <database name>
2. GRANT ALL PRIVILAGES ON DATABASE <database name> to <user_name>

## Basic Commands

1. /l → Lists all Databases
2. DROP → { DROP DATABASE <database_name> } → Deletes the database
3. \c → { \c <database_name> } Connect the database

## Table operations

1. CREATE TABLE <table_name> (
- <column_name -1> <Type> <primary key , not null etc> ,

ID INT NOT NULL ,

NAME CHAR[50],

AGE INT,

ADDRESS TEXT

);

1. \d → Lists all tables within a database
2. \d <table_name> → description of entire table
100 changes: 100 additions & 0 deletions Backend/PostgreSQL/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
## Redis Basics

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

## To start the Redis server

1. redis-server
2. redis-cli

## Notes

{key :"value"} → value is always a string (key value pair)

Numbers ⇒ "10020"

Objects ⇒ {key : "{ a : '1' }" }

Array ⇒ {key : "[1,2,3,4]" }

---

## Basic Commands

1. SET → SET <key> <value>
2. GET → GET <key>
3. DEL → DEL <key>
4. EXISTS → EXISTS <key>
5. KEYS \* → displays all available keys
6. FLUSHALL → Deletes everything
7. TTL → Time to live { TTL <key> }
8. EXPIRE → EXPIRE <key> <duration(in sec)>
9. SETEX → SETEX <key> <seconds> <value>

---

## ARRAY OPERATIONS

1. LPUSH → insert from left side → LPUSH <key> <Elements....>
2. RPUSH → insert from right side → RPUSH <key> <Elements....>
3. LPOP → Delete from left → LPOP <key> <count>
4. RPOP →Delete from right → RPOP <key> <count>
5. LRANGE → Iterating through the array → LRANGE <start index {eg: 0}> <end index {eg : -1}>
6. SADD → Allows only unique String elements in the array ( tip : if you have to insert words with space write it within double quotes else it will take it as 2 words ; by default it takes input as Strings

{ SADD <key> <members ..>

7. SMEMBERS → SMEMBERS <key>

---

## HASHES (kind of objects)

1. HSET → HSET <key> <field i.e. attribute name eg roll , name etc. > <value>
2. HGET → HGET <key> <field>
3. HGETALL → HGET <key>
4. HDEL → HDEL <key> <field>
5. HEXISTS → HEXISTS <key> <field> → returns 0 or 1

## PostgreSQL Commands

> SEMI COLON IS IMPORTANT

## To start the SQL server

1. psql -U postgres -h localhost
2. Enter the password

## Create a new User for Database

1. CREATE USER <user_name> WITH PASSWORD <'password'>

## Create a new User for Database and grant all privilegs

1. CREATE DATABASE <database_name>
2. GRANT ALL PRIVILEGES ON DATABASE <database_name> to <user_name>

## Basic Commands

1. /l → Lists all Databases
2. DROP → { DROP DATABASE <database_name> } → Deletes the database
3. \c → { \c <database_name> } Connect the database

## Table operations

1. CREATE TABLE <table_name> (

- <column_name -1> <Type> <primary key , not null etc> ,

ID INT NOT NULL ,

NAME CHAR[50],

AGE INT,

ADDRESS TEXT

);

1. \d → Lists all tables within a database
2. \d <table_name> → description of entire table
Loading