Skip to content

Instantly share code, notes, and snippets.

View Sc4ramouche's full-sized avatar
🐝

Vlad Kovechenkov Sc4ramouche

🐝
  • Berlin
View GitHub Profile
/*
npm i gulp-cli -g
npm i gulp --save-dev
npm i gulp-sass --save-dev
npm init -y
*/
const gulp = require('gulp');
const sass = require('gulp-sass');
$break-sm: 480px;
$break-lg: 1024px;
@mixin respond-to($media) {
@if $media == handhelds {
@media only screen and (max-width: $break-sm) { @content; }
}
@else if $media == medium-screens {
@media only screen and (min-width: $break-sm + 1) and (max-width: $break-lg - 1) { @content; }
}

install ESlint globally:

npm i eslint -g

in root folder of project initialize with npm npm init

initialize eslint in root folder eslint --init

add eslint to package.json

@Sc4ramouche
Sc4ramouche / is_numeric_function.js
Last active February 19, 2018 05:17
Function to check if the passed 'x' numeric in the context of if it is an number or an numeric string.
const isNumeric = (x) => !isNaN(parseFloat(x)) && isFinite(x);