Sometimes when we pull from upstream origin in terminal, we see git prompting to enter vim. And if we left it hanging there and went ahead committing somewhere else, it would treat all those changes in master as your own contribution, because merge didn’t happen before commit.
This is an easy gotcha:
We don’t actually need
$sanitize to sanitize strings.
ng-bind automatically implements sanitizing in the background with
textContent. However, sometimes we need to pass string in as template in controllers and services, or pass it in as the exact content of “
name” attribute of an input, then
$sanitize doesn’t work anymore.
$ git diff > file_name.diff
$ git apply file_name.diff
Module parse failed: <...> You may need an appropriate loader to handle this file type.
If you @import a lot of scss/sass/css files, the style loader can take a looong time to finish loading. How to improve? Lets take a look at what each of them does:
Error: listen EADDRINUSE :::3042
We just need to kill whatever that’s on the port. Probably the last exit wasn’t clean. Do:
$ lsof -i :3000 // to find out the PID number $ kill -9
// kill the process with its PID