git commit --amend --no-edit
--amend
is useful for adding additional changes to the last commit. For example, say you commited some changes then made an additional update, like removed console logs.
--no-edit
uses the previous commit message.
git commit --amend --no-edit
--amend
is useful for adding additional changes to the last commit. For example, say you commited some changes then made an additional update, like removed console logs.
--no-edit
uses the previous commit message.
List all globally installed modules:
sudo npm list -g --depth=0
Show all outdated globally install modules:
sudo npm outdated -g --depth=0
Update all globally installed modules:
sudo npm update -g
To upgrade npm to latest:
.ordered-list { | |
display: block; | |
margin-left: 0; | |
list-style: none; | |
li { | |
display: block; | |
margin-left: 0; | |
padding-left: 0; | |
counter-increment: table-ol; | |
&:before { |
Using the required
hack
A Pen by Alex Bergin on CodePen.
$ -> | |
window.toggleState = (controller, target) -> | |
$controller = document.querySelector(controller) | |
$target = document.querySelector(target) | |
closeMenu = -> | |
$target.setAttribute('data-state', 'closed') | |
$controller.setAttribute('data-state', 'closed') | |
openMenu = -> | |
$target.setAttribute('data-state', 'open') | |
$controller.setAttribute('data-state', 'open') |