×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
npm --version
Short version of the above commandnpm -v
install/uninstall modules/packages
create & share modules
use packages created by other developers
manage dependencies & versioning
git bisect start
git add -p
It will ask us interactively whether we want to add each individual changes to the staging area or not
y
means yes, n
means nogit log --oneline --all --graph
When --graph is not used, all history branches are flattened which can make it hard to see that the two consecutive commits do not belong to a linear branchgit reset --hard HEAD~3
Deletes all commits after the specified commit and moves HEAD to that commit (this will get rid of changes so we should be careful)git reset --hard 004caa3
$spaceamounts: (1, 2, 3, 4, 5);
@each $space in $spaceamounts {
.m-#{$space} {
margin: #{$space}rem;
}
}
$sizes: 40px, 50px, 80px;
@each $size in $sizes {
.icon-#{$size} {
font-size: $size;
height: $size;
width: $size;
}
}
// set text color based on bg
@function set-text-color($color) {
@if (lightness($color) > 70) {
@return #333;
} @else {
@return #fff;
}
}
// set bg color & text color
@mixin set-background($color) {
background-color: $color;
color: set-text-color($color);
}
Use the mixin - "set-background"h1 {
@include set-background($primary-color);
}
Changing bg-color effect on text-color: https://youtu.be/nu5mdN2JIwM?t=2333