Skip to content

Instantly share code, notes, and snippets.

View ierhyna's full-sized avatar

Irina Sokolovskaia ierhyna

View GitHub Profile
@ierhyna
ierhyna / webpack.config.js
Created July 17, 2017 19:59
webpack.config.js
const path = require('path');
const merge = require('webpack-merge');
const webpack = require('webpack');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const TARGET = process.env.npm_lifecycle_event; // npm run start || npm run build
const common = {
entry: {
app: [
@mixin for-size($size) {
@if $size == phone-only {
@media (max-width: 599px) { @content; }
} @else if $size == tablet-portrait-up {
@media (min-width: 600px) { @content; }
} @else if $size == tablet-landscape-up {
@media (min-width: 900px) { @content; }
} @else if $size == desktop-up {
@media (min-width: 1200px) { @content; }
} @else if $size == big-desktop-up {
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
@ierhyna
ierhyna / install-mysql.md
Created October 9, 2016 19:11
How to install MySQL with Homebrew
@ierhyna
ierhyna / prettyDate.js
Created September 15, 2016 19:30
Pretty Date
/**
* Pretty Date
* @param dateObj
*/
function prettyDate(dateObj) {
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
return months[dateObj.getMonth()] + ' ' +
dateObj.getDate() + ', ' +
dateObj.getFullYear();
}
@ierhyna
ierhyna / gulpfile.js
Last active June 12, 2021 15:12
gulpfile.js
'use strict';
const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const browserSync = require('browser-sync');
const reload = browserSync.reload;
gulp.task('build:css', ['lint:css'], function () {
const postcss = require('gulp-postcss');
const nano = require('gulp-cssnano');
@ierhyna
ierhyna / dom.js
Created April 22, 2016 08:54
DOM.js
/**
* Get element by ID shortcode
* @param {Node} selector
* @return {Node}
*/
export function id(selector) {
return document.getElementById(selector);
}
/**

Keybase proof

I hereby claim:

  • I am ierhyna on github.
  • I am ierhyna (https://keybase.io/ierhyna) on keybase.
  • I have a public key whose fingerprint is C947 C94A D6EA EBE5 BB32 5FAD 4EA2 288B 5DD4 8CCA

To claim this, I am signing this object:

@ierhyna
ierhyna / countries.json
Last active December 21, 2015 14:04
countries.json
[
{
"name": "Андорра"
},
{
"name": "Объединенные Арабские Эмираты"
},
{
"name": "Афганистан"
},
@ierhyna
ierhyna / sass-functions.scss
Created October 29, 2015 12:45
Basic Sass Functions
//
// Color Functions
//
// Get color
// Use: $button-color: color('primary');
@function color($key: 'primary') {
@return map-get($colors, $key);
}