Skip to content

Instantly share code, notes, and snippets.

View narqo's full-sized avatar
🌕
Berlin, +9°

Vladimir Varankin narqo

🌕
Berlin, +9°
View GitHub Profile
field react ember ember2 incrementaldom
MajorGC 10.4086 21.4694 18.6744 8.645199999999999
MinorGC 149.14180000000002 230.2074 162.7098 54.58320000000001
Layout 1068.3233999999998 707.2348000000001 841.2268 2049.1456000000007
Paint 564.5266000000001 294.0348 351.05559999999997 1042.4279999999997
mean_frame_time 21.459681074792663 19.983254678205277 20.93307595365973 19.19166559509372
droppedFrameCount 526.4 494 510.2 402.6
ExpensivePaints 0 0 0.2 0
ExpensiveEventHandlers 17.8 0 0 0
NodePerLayout_avg 4008.9583108715183 5809.8171432597555 5811.05877104377 3006.8257160311323
import connect from 'connect';
class ErrEmpty extends Error {
constructor() {
super()
this.message = 'Empty string';
}
}
class StringService {
export default class Block {
constructor(driver) {
this.driver = driver
}
}
/**
* `window.requestAnimationFrame` rewritten in `Promise`s way.
* See https://api.dartlang.org/1.12.2/dart-html/Window/animationFrame.html
*/
const animationFrame = () => new Promise(resolve => window.requestAnimationFrame(resolve));
function test(prefix, fn) {
var counter = 0;
const next = function() {
import 'ym';
import './blocks/block1.js';
import './blocks/block2.js';
import './blocks/block3.js';
console.log(a);
@narqo
narqo / 0-bem-core-es6.md
Last active August 29, 2015 14:25
How bem-core + ES6 may looks like
@narqo
narqo / git-distclean
Created July 18, 2015 22:45
git distclean custom subcommand
#!/bin/sh
git reset --hard && git ls-files -o --directory -X ~/.gitignore | xargs rm -rf
/* jshint esnext:true */
// native generators
function* random() {
var i = 0;
while(i++ < 1e5) {
yield Math.random();
}
}
function Path(path) {
this.path = this.parsePathStr(path);
console.log(this.path);
this.length = this.path.length;
/** @override */
this.get = this.createGetFn();
}
Path.prototype.get = function(obj) {
for(var i = 0; i < this.length; i++)
› git log -1 --format=raw
‹ commit 183d84256366295c8186b4d01f4714c75a7f4272
tree 639f5acf64026fcbd1d0704488a1815dcb5db406
parent d0fb80adbb711dd2f68c7abbaa2767b8cda30d03
parent 56f37221f1627fcf263bcff82653cfb87c7e1ea4
author Vladimir Varankin <[email protected]> 1428501575 +0300
committer Vladimir Varankin <[email protected]> 1428501575 +0300
Merge pull request #937 from bem/issues/#929@v2