๐
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
#Make life easier by aliasing daily used commands | |
### edit .bashrc file | |
Step 1:- Move to home directory by typing. | |
>CD | |
Step 2:- Open .bashrc file. | |
>vim .bashrc | |
or | |
>nano .bashrc |
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
#Running docker container nginix images(new container) | |
> docker container run --publish 80:80 --detach nginix // --detach(-d) to run in background // --publish(-p) defines port forwarding | |
> docker container run --publish HOST_PORT:CONTAINER_PORT --detach --name nginx_server nginix // --name to provide unique name to container | |
#List docker container | |
> docker container ls -a // -a to list all running or stopped containers | |
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, |
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
#### Format of Dataset | |
# Movies | |
{ | |
"_id" : ObjectId("5aa7d4496b7a5451ba8ce741"), | |
"movie_id" : 1, | |
"title" : "Toy Story (1995)", | |
"genres" : "Animation|Children's|Comedy" | |
} | |
# Ratings | |
{ |
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
/* | |
Async: -"When an async function is called, it returns a Promise. When the async function returns a value, | |
the Promise will be resolved with the returned value.When the async function throws an exception or some value, | |
the Promise will be rejected with the thrown value.An async function can contain an await expression, | |
that pauses the execution of the async function and waits for the passed Promise's resolution, | |
and then resumes the async function's execution and returns the resolved value." | |
Await:- "The await expression causes async function execution to pause until a Promise is fulfilled or rejected, | |
and to resume execution of the async function after fulfillment. When resumed, the value of the await expression is | |
that of the fulfilled Promise.If the Promise is rejected, the await expression throws the rejected value. |
NewerOlder