Updates composer.lock hash without updating any packages
composer update --lock
Updates composer.lock hash without updating any packages
composer update --lock
For a quick local server:
npm install browser-sync --save-dev
In package.json
:
"scripts": {
"server": "browser-sync start --directory --server --files '*.js, *.html, *.css'"
}
parseInt()
parses a string and returns a whole number. Spaces are allowed. Only the first number is returned.
This method has a limitation though. If you parse the decimal number, it will be rounded off to the nearest integer value and that value is converted to string. One might need to use parseFloat()
method for literal conversion.
myString = '129'
console.log(parseInt(myString)) // expected result: 129
a = 12.22
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
Shows a list of outdated projects named in composer.json
with the currently installed and available versions. Lots more options at: https://getcomposer.org/doc/03-cli.md#show
The Sass folder structure loosely follows the concepts discussed at https://medium.com/p/7fe19ab647fa.
This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v=
URL parameter.