Skip to content

Instantly share code, notes, and snippets.

View XOP's full-sized avatar

Evgeny Khoroshilov XOP

View GitHub Profile
@XOP
XOP / webstorm.vmoptions
Created September 11, 2018 09:50
Webstorm vmoptions
-Xms1024m
-Xmx1536m
-XX:ReservedCodeCacheSize=512m
-XX:+UseCompressedOops
@XOP
XOP / static-post-processing-2016.js
Created February 6, 2018 16:18
static-post-processing-2016
var fs = require('fs');
var path = require('path');
// used deps
var inlineCSS = require('inline-css');
var htmlMinify = require('html-minifier').minify;
// working paths
var projectFolder = path.resolve(__dirname, '../../');
var workingFolder = path.join(projectFolder, 'build/emails/');
@XOP
XOP / build-css-lint.js
Created July 31, 2017 13:10
csslint for node analysis
const fs = require('fs');
const path = require('path');
const buildPath = 'build/public';
const csslint = require('csslint').CSSLint;
const buildCSSPath =
fs.readdirSync(buildPath)
.filter(f => f.indexOf('.css') > -1)
import { BROWSER } from '../constants/browser';
export function isWebPSupported (browser) {
// webp is supported in some browsers
// return true immediately
// todo: augment list, check versions etc
if (typeof browser !== 'undefined' && (
browser.browser === BROWSER.OPERA ||
browser.browser === BROWSER.CHROME
@XOP
XOP / dotjs2016.md
Last active December 22, 2016 14:38
dotJS 2016 notes
@XOP
XOP / dotcss2016.md
Last active December 22, 2016 14:37
dotCSS 2016 notes
@XOP
XOP / npm-run.js
Created October 14, 2016 14:19
Node CLI runner
#!/usr/bin/env node
"use strict";
var log = require('log-util');
var exec = require('child_process').exec;
module.exports = function (cmd) {
var command = 'npm run ' + cmd;
exec(
<div class="body">
<div class="dropdown">
<div class="dropdown__content">
<div class="content">
<div class="content__item">
<input type="checkbox" />
Item 1
</div>
@XOP
XOP / cssconfbp.md
Created May 15, 2016 13:59
CSSConf Budapest 11 of May notes
@XOP
XOP / jsconfbp.md
Last active May 14, 2016 19:15
JSConf Budapest 12-13 of May notes

JSConf Budapest 12-13 May

official site

schedule

Read before Proceed!

This is the instant notes of the conference flow
Some details are missing (and so do Caps), others just dropped for the sake of brevity