Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
#/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
shopt -s nullglob | |
INSTALL_PATH="$HOME/Telegram" | |
TEMP_PATH="$HOME/.tmp" | |
sudo apt-get install xz-utils |
#!/usr/bin/env bash | |
# @todo: load URL from here: https://data.services.jetbrains.com/products/releases?code=PS&latest=true&type=release | |
set -o errexit | |
set -o pipefail | |
shopt -s nullglob | |
DROPBOX_PATH="$HOME/Dropbox" | |
INSTALL_PATH="$HOME/PhpStorm" |
#/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 |
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.
const gulpPostcss = require('gulp-postcss'); | |
const postcssPartialImport = require('postcss-partial-import'); | |
const postcssCssnext = require('postcss-cssnext'); | |
const gulpRename = require('gulp-rename'); | |
const gulpLivereload = require('gulp-livereload'); | |
const gulpCssnano = require('gulp-cssnano'); | |
const gulpif = require('gulp-if'); | |
const sourcemaps = require('gulp-sourcemaps'); // <======================================== |
{# | |
Defined "Confirm" one-click action. | |
@param {string} title | |
@param {string} url | |
@param {string} [description] | |
#} | |
<div itemscope itemtype="http://schema.org/EmailMessage"> | |
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction"> | |
<meta itemprop="name" content="{{ title }}"/> |
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) {
#!/usr/bin/env bash | |
read -p "Username: " USERNAME | |
read -s -p "Password: " PASSWORD; echo | |
printf "${USERNAME}:$(openssl passwd -crypt ${PASSWORD})\n" >> ./.htpasswd |