This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
extends: [ | |
'airbnb', | |
'prettier', | |
], | |
parser: 'babel-eslint', | |
parserOptions: { | |
ecmaVersion: 2017, | |
sourceType: 'module', | |
ecmaFeatures: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let blacklists = ["*://mail.google.com/*", "*://mail.yandex.ru/*", "*://photos.google.com/*", "*://docs.google.com/*", "*://trello.com/*", "*://appleid.apple.com/*", "*://taxify.atlassian.net/*"]; | |
let scrollstep = 200 | |
set nosmoothscroll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://revalsport.ee/core/wp-admin/admin-ajax.php' -H 'cookie: wordpress_sec_3f51ba3cfa9f99217c45f02bb0bffe9c=1755%7C1508493467%7CaCGrdOyzV3xMDg4uIg42ltzf244nSutIjwruFCLRdrc%7C798d3bbcc1d7a6489560f35fa305c230a3b3ef5274b281a2f112835992033445; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_3f51ba3cfa9f99217c45f02bb0bffe9c=1755%7C1508493467%7CaCGrdOyzV3xMDg4uIg42ltzf244nSutIjwruFCLRdrc%7C94193fe9fe76db2955b5acc7c72d9dc61a7af139f17cf3303b87e24131cdffb4; 75_Liitu10=true; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_3f51ba3cfa9f99217c45f02bb0bffe9c=1755%7C1508493467%7CaCGrdOyzV3xMDg4uIg42ltzf244nSutIjwruFCLRdrc%7C94193fe9fe76db2955b5acc7c72d9dc61a7af139f17cf3303b87e24131cdffb4; _icl_current_language=et; _gat=1; _ga=GA1.2.846093033.1507399352; _gid=GA1.2.2074483748.1508227733; _gat_UA-105765874-1=1; ju_v=3.6; _ju_dc=b23163e0-ab89-11e7-97bd-231bc37b8c04; _ju_pn=5' -H 'origin: https://revalsport.ee' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.8,ru;q=0.6' - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function increasePrice(number) { | |
for (let i = 0; i < number; i++) { | |
document.getElementById('btnRaisePrice').click() | |
} | |
} | |
function decreasePrice(number) { | |
for (let i = 0; i < number; i++) { | |
document.getElementById('btnLowerPrice').click() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.012 000.012: --- VIM STARTING --- | |
000.116 000.104: Allocated generic buffers | |
000.358 000.242: locale set | |
000.361 000.003: clipboard setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getPaths = function({ name, children = [] }) { | |
// concat with spread(...) flattens nested arrays | |
var childrenPaths = [].concat(...children.map(getPaths)).map(path => `${name}/${path}`); | |
return [name].concat(childrenPaths); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<script id="foo"> | |
eval(document.getElementById('foo').textContent); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cache = cache || {}; | |
function cacheCheck(n) { | |
if (Object.keys(cache).indexOf(n) > -1) { | |
return cache[n]; | |
} | |
}; | |
// Both strategies won't behave as expected, due to incorrect division on large numbers | |
function safeIntegerCheck(n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
General information: | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_7_support_in_Mozilla | |
http://www.2ality.com/2014/08/es6-today.html | |
http://ariya.ofilabs.com/2013/05/es6-and-block-scope.html (and related posts) | |
Modules: | |
www.2ality.com/2014/09/es6-modules-final.html | |
Spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forceOperaRepaintElement = function(el) { | |
if (window.opera) { | |
el.style.position = "relative"; | |
window.setTimeout(function() { | |
el.style.position = "absolute"; | |
}, 0); | |
} | |
}; |