Use git diff --numstat
Use git diff --numstat
Use the remark-gfm NPM package. And use it as a plugin with ReactMarkdown
.
Import it:
import remarkGfm from "remark-gfm";
And then use it as a plugin with ReactMarkdown
:
<ReactMarkdown children={markdown} remarkPlugins={[remarkGfm]} />
You can read more in the ReactMarkdown
documentation: https://github.com/remarkjs/react-markdown#use.
Use more than three backticks.
You can use three or more backticks to define a code snippet in Markdown.
So use four backticks to define your code snippet. And then use three inside the code snippet.
# Markdown Title
Code snippet inside of Markdown:
````html
```
<p>My code snippet</p>
```
````
This will preserve the three backticks inside your code snippet.
To close your nano editor: ctrl
+x
.
To save and then close: ctrl
+ x
, then y
, then enter
.
You'll want to find the list and use the have.length
Cypress method to test how many items are in the list:
Something like this:
cy
.get('ul')
.find('li')
.should('have.length', 4);
This would grab your <ul>
list and assert that there are 4
<li>
elements in the list.
Read more about the length property here: https://docs.cypress.io/guides/references/assertions#Length.
You can always just execute the docker
command in your terminal.
If docker is installed on your machine, it should output all of its commands:
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/Users/nickmajor/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/Users/nickmajor/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/Users/nickmajor/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/Users/nickmajor/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
. . .
If not, the output will contain an error similar to this:
-bash: docker: command not found
Run this command to get the latest version of docker
on your machine:
docker --version
If docker
is installed on your machine, it will output something similar to this:
Docker version 20.10.14, build a224086
It's a way to exclude code in your project in code coverage reports.
More info here: github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md.
You need to create a personal access token on GitHub and then use that instead of your password.
The link in your terminal output gives more context for why GitHub switched to that method: https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/.
Generate the token on GitHub, save it locally somewhere on your machine, and then use it instead of your password when cloning, pushing, etc. your repository.
Easy peasy!
VS Code provides a good guide for this on their website: https://code.visualstudio.com/docs/setup/mac.
After going through that guide, you should be able to open VS Code with this command:
code
And you can open specific files and directories in VS Code as well:
code file.txt