Run a security audit SYNOPSIS§ EXAMPLES§ Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies: Run audit fix without modifying node_modules, but still updating the pkglock: Skip updating devDependencies: Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones: Do a dry run to get an idea of what audit fix will do, and also output install …
Store functions in localStorage
We can only store string data to localStorage and sometimes we need to store methods and invoke later. In order to do this, Javascript provides functionality to stringify methods. Here is an example function. const func = function sum(a, b) { return a + b; } func.toString() returns a string like function sum(a, b) { …
php-cs-fixer
This package make the code style align in php. You can use this with code editors like php or git shell script. The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community …
git rebase -i
This git command make several commits group into 1 commit. git rebase -i HEAD~n You can remove n commits into 1 single or m other commits. After typing the above command, hit enter. Put pick in front of commits which you want to remain. Put squash in front of commits which you want to break. …
Mobile Browser Inspection
We can inspect mobile safari browser as we do on desktop browsers.When we connect mobile device to Mac PC, mobile safari browser appears in desktop safari browser.Then we can inspect mobile browser using our desktop browser – check css, attributes and set break point, etc.Note: This is only available for safari browser
Responsive Table Issue in BootStrap 4
When you use the css class table-responsive in bootstrap4, table will not be full width. This is bootstrap4 issue. To fix this, you need to use table-responsive class in the parent div tag https://stackoverflow.com/questions/41747667/bootstrap-4-responsive-tables-wont-take-up-100-width