Skip to content

Instantly share code, notes, and snippets.

View aslushnikov's full-sized avatar
🚀
Going through all the e-mails and notifications

Andrey Lushnikov aslushnikov

🚀
Going through all the e-mails and notifications
View GitHub Profile
@aslushnikov
aslushnikov / include.gypi
Created June 11, 2014 11:38
Default gypi settings for chrome devtools
{
'variables': {
'DEBUG': 1,
'debug_devtools': 1,
'dcheck_always_on': 1,
'use_goma': 1,
'clang': 1,
'gomadir': '<!(/bin/echo -n ${HOME}/goma/goma)',
#'component': 'shared_library',
#'enable_oilpan': 1
/**
* @param {TYPE} a
* @param {TYPE} b
* @template TYPE
* @return {TYPE}
*/
function max(a, b)
{
/**
@aslushnikov
aslushnikov / download.sh
Last active December 28, 2017 18:27
a simple snippet to pull track url from VK
# rename hashes, setup id3 tags
set -o
track=$(echo "$1" | cut -d'@' -f1)
url=$(echo "$1" | cut -d'@' -f2)
name=$(echo "$1" | cut -d'@' -f3)
artist=$(echo "$name" | cut -d'-' -f1)
song=$(echo "$name" | cut -d'-' -f2)
@aslushnikov
aslushnikov / console-search-reveals-messages.html
Created October 27, 2014 09:12
Developer Tools layout test explained
<!--
Developer Tools has a lot of different tests. Here we'll go through the most
common type which tests Developer Tools front-end.
Every front-end test is just a webpage. The testing system (which is essentially a special
lightweight browser, content_shell) opens this page, and then opens Developer Tools to inspect
it.
-->
<html>
@aslushnikov
aslushnikov / As of today results
Last active August 29, 2015 14:14
Every testcase counts time of tokenizing via esprima.tokenize()
lushnikov:~/prog/esprima/test(master)$ node benchmarks
Doesn't have exposed gc().
Underscore 1.5.2 42.5 KiB 3.77 ms ± 2.60%
Backbone 1.1.0 58.7 KiB 4.74 ms ± 0.63%
MooTools 1.4.5 156.7 KiB 45.74 ms ± 2.32%
jQuery 1.9.1 262.1 KiB 58.39 ms ± 7.26%
YUI 3.12.0 330.4 KiB 49.95 ms ± 1.27%
jQuery.Mobile 1.4.2 442.2 KiB 95.95 ms ± 7.95%
Angular 1.2.5 701.7 KiB 79.69 ms ± 6.74%
inbox 1945.5 KiB 1749.02 ms ± 0.29%
diff --git a/test/benchmarks.js b/test/benchmarks.js
index cf7673f..4b92449 100644
--- a/test/benchmarks.js
+++ b/test/benchmarks.js
@@ -37,7 +37,8 @@ fullFixture = [
'jQuery 1.9.1',
'YUI 3.12.0',
'jQuery.Mobile 1.4.2',
- 'Angular 1.2.5'
+ 'Angular 1.2.5',
@aslushnikov
aslushnikov / Snippet
Last active August 29, 2015 14:18
V8 AST example 1
for (var i = 0; i < 10; ++i) {} var b = 0;
@aslushnikov
aslushnikov / Snippet
Created April 7, 2015 21:13
V8 AST example 2
function test(a, b, c) { return 1; }
@aslushnikov
aslushnikov / Snippet
Created April 7, 2015 21:14
V8 AST example 3
if (1 < 2) { 1} else { 2}
@aslushnikov
aslushnikov / Snippet
Created April 7, 2015 21:16
V8 AST example 4
var a = 10, b = 20, c = a + b;