This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* [deb] Debugging function | |
* Pass any kind of variables and | |
* see the result | |
* | |
* @return {[false]} [always] | |
*/ | |
function deb() { | |
let msg = ''; | |
if(arguments.length == 0) msg += '(!) debug: don\'t spend my time.\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* [isEmtyObj] | |
* | |
* @param {[object]} obj [description] | |
* @return {[boolean]} [description] | |
*/ | |
function isEmptyObj(obj) { | |
// console.log('Obj cont: ' + obj); | |
// console.log(`Obj leng: ${obj.length}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"responsive": { | |
"config": { | |
"bg/bg-*.jpg": [{ | |
"width": 1600, | |
"quality": 70, | |
"rename": { "suffix": "-1600x" }, | |
"skipOnEnlargement": true | |
}, { | |
"width": 800, | |
"quality": 70, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Gulp API and configuration | |
const { src, dest } = require('gulp'); | |
// Other dependencies | |
const googleFonts = require('gulp-google-webfonts'); | |
const getUrls = require('get-urls'); | |
const through2 = require('through2'); | |
const url = require('url'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Informer | |
* Lightweight message system | |
* | |
* @options | |
* | |
* type - | |
* life - | |
* speed - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* svgConnect | |
* Connect objects with svg line | |
* | |
* @options | |
* | |
*/ | |
(function($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
-------------------------------- | |
normalize.css v8.0.1 + reset.css | |
-------------------------------- | |
*/ | |
html { | |
line-height: 1.15; | |
-webkit-text-size-adjust: 100%; | |
} | |
body, html { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function to print help message and exit | |
usage () { | |
[ ! -z "$1" ] && printf "\n \e[31m[ error ]\e[0m $0: %s\n" "$1" >&2 | |
printf "$USAGE" >&2 | |
exit 2 | |
} | |
# Catch arguments | |
for (( i=1; i<=$#; i++ )); do | |
case "${!i}" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:global ipCurrent "$ipCurrent"; | |
{ | |
# Change to your settings | |
# ----------------------- | |
:local wanInterface "eth1"; | |
:local slackHookUrl "https://hooks.slack.com/services/YOUR/APP/SECRET"; | |
# ----------------------- | |
:local ipNew [/ip address get [find interface=$wanInterface] address]; |
OlderNewer