SHA1, SHA256 and SHA512 Implementation in JavaScript
Docs: MDN SubtleCrypto.digest()
Read moreUse "C:\Program Files\..."
or C:\"Program Files"\...
However, I find it not a good idea. The terminal crashes from time to time and Workspace
in MATLAB cannot be integrated into vscode.
The main …
Read moreWhen using git to collaborate with others, the following workflow should be taken:
git checkout main
to switch the local branch to main.git pull origin main
to pull the remote main branch to the local branch to catch up the work.git checkout -b newLocalBranchName
to create a …Docs: MATLAB Help Center
theTable(theTable.VariableName == 0, :);
returns a table that contains every row in theTable
whose VariableName == 0
.
This removes rows with row id 3,5,7 from the table.
table([3,5,7],:)=[];
The chosen router link has a class .router-link-exact-active
Docs: Navigation Guards
As the name suggests, the navigation guards provided by Vue router are primarily used to guard navigations either by redirecting it or canceling it.
To …
Read moreDocs: django-cors-headers, django core settings
According to django-cors-headers, use:
python -m pip install django-cors-headers
to install django-cors-headers
and add it to installed apps in settings.py
INSTALLED_APPS = [
...,
"corsheaders",
...,
]
Add a middleware class to listen in on responses. The order of middlewares is important:
CorsMiddleware
should be placed …
Goodbye world! (Why not 'Hello World!', you might ask. That's what people in the industry do. Well, that's the reason. )
Test formula: $ \frac{x_1^2} {\sqrt{y_2^2} } $
Test images:
Becoming Web Leader of NIMO
Read more