ng command new app
Create new Angular app
Here is what the above code is Doing:
1. Create a new directory called “my-app”
2. Create a new Angular app called “my-app”
3. Change directory to “my-app”
4. Open the project in VS Code
Create new Angular app
Here is what the above code is Doing:
1. Create a new directory called “my-app”
2. Create a new Angular app called “my-app”
3. Change directory to “my-app”
4. Open the project in VS Code
echo ‘{“node1″:”foo”, “node2″:”bar”,”node3″: {“inner-node”: “baz”}}’ | jq ‘. |=keys’ [ “node1”, “node2”, “node3” ] Here is what the above code is Doing: 1. The first line is a simple echo command that prints out a JSON string. 2. The second line is the jq command. 3. The third line is the output of the jq…
#in bash / console pwd Here is what the above code is Doing: 1. We’re importing the os module. 2. We’re creating a variable called path and setting it equal to the current working directory. 3. We’re printing the path variable.
npm i @mui/material Here is what the above code is Doing: 1. Importing the Material UI components that we need. 2. Creating a function that returns a Material UI component. 3. Exporting the function.
echo ‘foo’ | tee foo.txt foo cat foo.txt foo Here is what the above code is Doing: 1. The first line is a comment. 2. The second line is a command that prints the string ‘foo’ to the terminal. 3. The third line is a command that pipes the output of the second line into…
git checkout README # would normally discard uncommitted changes # to the _file_ “README” git checkout master # would normally switch the working copy to # the _branch_ “master” git checkout — master # discard uncommitted changes to the _file_ “master” Here is what the above code is Doing: 1. git checkout master 2. git…
curl http://169.254.169.254/latest/meta-data/public-hostname Here is what the above code is Doing: 1. We’re using the boto3 library to connect to EC2. 2. We’re using the describe_instances() method to get information about our EC2 instance. 3. We’re using the filter() method to filter the results by the “Name” tag. 4. We’re using the [0] index to get…