Webstorm sin VSCode Gitlens compare working dir with branch
Sun 26. November 2023 | 2023-11-26View > Appearance > show status bar
View > show status bar widgets > BRANCH
ÅPNE MENY NEDE TIL HØYRE > Velg branch du vil sammenligne med
View > Appearance > show status bar
View > show status bar widgets > BRANCH
ÅPNE MENY NEDE TIL HØYRE > Velg branch du vil sammenligne med
.eslintrc
"prettier/prettier": 0,
nyttig for webstorm
Top right drop-down menu:
Edit configurations
python interpreter:
place breakpoint (not in the template, click the left border)
--OK--
Debug 'name' (F5) (At least with VS Code keymap)
Eg. Search for "use-query-params" in package.json's git history
git grep use-query-params $(git rev-list --all -- package.json) -- package.json
.bashrc/.zshrc-file# search for word in a file's git history
# usage: filehistorysearch "use-query-params" package.json
filehistorysearch() {
git grep $1 $(git rev-list --all -- $2) -- $2
}
fetch all related products from a list of products, and get results merged into one response!
const GET_RELATED_PRODUCTS = `
query getRelatedProducts($url: [String!]) {
products(filter: { url: { in: $url } }) {
items {
}
}
}
`
fetching just one product's related products
const GET_RELATED_PRODUCTS = `
query getRelatedProducts($url: String!) {
products(filter: { url: { eq: $url } }) {
items {
}
}
}
`
krasjer npm run test-storybook ? Får du error-meldinger som folk på internettet sier betyr at du har gått tom for RAM?
Prøv:
https://docs.gitlab.com/user/ssh/#generate-an-ssh-key-pair
ssh-keygen -t ed25519 -C "
https://docs.gitlab.com/user/ssh/#add-an-ssh-key-to-your-gitlab-account
linux
xclip -sel clip < ~/.ssh/id_ed25519.pub
https://docs.gitlab.com/user/ssh/#verify-that-you-can-connect
instance url for ssh
ssh -T git@gitlab.com
Hvordan opprette og bruke
Create SSH-keys & upload to Gitlab
Fint for å slippe å skrive inn brukernavn og passord hver eneste gang
ssh-keygenGenerating public/private rsa key pair.
Enter file in which to save the key (/home/paalss/.ssh/id_rsa):
[Enter]...
Your public key has been saved in /home/paalss/.ssh/id_rsa.pub
...
cat /home/paalss/.ssh/id_rsa.pubssh-rsa <Hererenlanghashcode> paalss@Asus-VivoBook
ssh-rsa <Hererenlanghashcode>Resten er rett frem
https://docs.oracle.com/en/cloud/cloud-at-customer/occ-get-started/generate-ssh-key-pair.html
git push?Da bruker du sannsynligvis HTTPS:
Slik bytter du til SSH:
git remote set-url origin git@github.com:paalss/<repo>.git
https://peter-whyte.com/setup-ssh-keys-in-wsl/
eval $(ssh-agent -s) && ssh-add ../pw_bitbucket
Personal Access Token for http
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Kan brukes til authentication i stedet for passord
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
eller:
ssh-add ~/.ssh/github_pw
Discovery:
Set position: fixed|avsolute on parent element, and you can choose between instant and smooth scroll-behaviors (scroll-behavior: initial|smooth)
But with position: sticky|relative|static you can't choose. You're stuck with smooth scrolling
explorer.exe .
open .
npm i bootstrap-toc@npm:bootstrap@5.1.3 --save-exact
npm i bootstrap@5.2.3 --save-exact
usage
const bootstrap = require("bootstrap-toc/dist/js/bootstrap.bundle.min.js");
new bootstrap.ScrollSpy(document.body, {
target: "#scroll-nav",
// give space for header
offset: 100,
});
<select><br>, <img>, <hr> -> <hr/> (all elements must have closing tag / be self closing)JSX