Looks like npm decided to stand up to yarn by releasing npm version 5, which is announced to be 5 times faster than previous version of npm.
I've decided to test it in one of my projects, the results are below:
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
S3BUCKETNAME="$1" | |
else | |
echo ERROR: Failed to supply S3 bucket name | |
exit 1 | |
fi | |
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public |
This custom validator for Angular 4 allows you to have fields that must be equal to some other fields. Such validator is very useful for password confirmation validation, for example.
Besides checking if two values are matching, it also subscribes to changes from other control and re-validates when either of two controls is updated.
— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
1). Add the following snippet to the cover_init
function (before $isMobile
is first used):
var minWidthForVideo = parseInt(el.attr('data-min-width-for-video')) || null;
var imageMode = $isMobile;
var windowWidth = $(window).width();
if (minWidthForVideo && windowWidth < minWidthForVideo) {
Hello!
Today, I'm going to show you how to pluralize any word in JavaScript (Node.js or Browser) in almost any language!
I've developed a very simple, but powerful package in JavaScript that will help you to achieve this goal. It's called Numerous.
#/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
NODE_VERSION="v9" | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
. $HOME/.nvm/nvm.sh |