Skip to content

Instantly share code, notes, and snippets.

View belozer's full-sized avatar
🏠
Working from home

Sergey Belozyorcev belozer

🏠
Working from home
View GitHub Profile
@belozer
belozer / bemhtml.browser.js
Created November 18, 2016 12:25
Build BEM project with gulp-bem
// bem/.tmpls/bemhtml.browser.js
var BEMHTML;
(function(global) {
function buildBemXjst(__bem_xjst_libs__) {
var exports = {};
<%= contents %>
@belozer
belozer / gulpfile.js
Last active November 24, 2016 14:49
Gulpfile with gulp-bem-presets
const gulp = require('gulp');
const Builder = require('gulp-bem-bundle-builder');
const bundler = require('gulp-bem-bundler-fs');
const nodemon = require('gulp-nodemon');
const merge = require('merge2');
const debug = require('gulp-debug');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const gulpif = require('gulp-if');
const concat = require('gulp-concat');
@belozer
belozer / gulpfile.js
Created November 23, 2016 21:08
gulp-bem with tasks
const gulp = require('gulp')
const Builder = require('gulp-bem-bundle-builder')
const bundler = require('gulp-bem-bundler-fs')
const merge = require('merge2')
const debug = require('gulp-debug')
const babel = require('gulp-babel')
const uglify = require('gulp-uglify')
const gulpif = require('gulp-if')
const concat = require('gulp-concat')
const spawn = require('child_process').spawn
@belozer
belozer / index.html
Last active August 15, 2019 23:43 — forked from samosad/index.html
#slice #rest #2for (http://jsbench.github.io/#0eac5d083e6b6e05a1614f26feefd1df) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>#slice #rest #2for</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>#slice #for</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@belozer
belozer / .babelrc
Last active August 21, 2019 19:30
NextJS effector
{
"presets": ["next/babel"],
"plugins": ["effector/babel-plugin"]
}
@belozer
belozer / index.html
Last active August 26, 2019 01:24
forEach vs for in #jsbench #jsperf (http://jsbench.github.io/#8b169b13a12dd529660e5c10c9d5f4e6) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>forEach vs for in #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>isDefined checker</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@belozer
belozer / index.html
Created September 2, 2019 05:31
forEach vs for of #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>forEach vs for of</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>