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
find . -type f -a -mtime -4 | xargs tar -czvf changes.tar.gz |
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
System.security.allowDomain("images.rambler.ru","ad.rambler.ru", "ad2.rambler.ru", "ad3.rambler.ru", "www.rambler.ru"); | |
Stage.scaleMode = "noScale"; | |
Stage.align = "L"; | |
resizeListener = {}; | |
resizeListener.parent = this; | |
resizeListener.onResize = function(){ | |
this.parent.fon_mc._width = Stage.width; | |
this.parent.front_mc._x = (Stage.width - this.parent.front_mc._width)/2; |
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
/* | |
That script was written for filtering hotels by name at www.ostrovok.ru | |
Usage: | |
soundex.calc('Some name'); | |
*/ | |
var soundex = { | |
codes: {A:{0:[0,-1,-1],I:[[0,1,-1]],J:[[0,1,-1]],Y:[[0,1,-1]],U:[[0,7,-1]]},B:[[7,7,7]],C:{0:[5,5,5],1:[4,4,4],Z:{0:[4,4,4],S:[[4,4,4]]},S:{0:[4,4,4],Z:[[4,4,4]]},K:[[5,5,5],[45,45,45]],H:{0:[5,5,5],1:[4,4,4],S:[[5,54,54]]}},D:{0:[3,3,3],T:[[3,3,3]],Z:{0:[4,4,4],H:[[4,4,4]],S:[[4,4,4]]},S:{0:[4,4,4],H:[[4,4,4]],Z:[[4,4,4]]},R:{S:[[4,4,4]],Z:[[4,4,4]]}},E:{0:[0,-1,-1],I:[[0,1,-1]],J:[[0,1,-1]],Y:[[0,1,-1]],U:[[1,1,-1]],W:[[1,1,-1]]},F:{0:[7,7,7],B:[[7,7,7]]},G:[[5,5,5]],H:[[5,5,-1]],I:{0:[0,-1,-1],A:[[1,-1,-1]],E:[[1,-1,-1]],O:[[1,-1,-1]],U:[[1,-1,-1]]},J:[[4,4,4]],K:{0:[5,5,5],H:[[5,5,5]],S:[[5,54,54]]},L:[[8,8,8]],M:{0:[6,6,6],N:[[66,66,66]]},N:{0:[6,6,6],M:[[66,66,66]]},O:{0:[0,-1,-1],I:[[0,1,-1]],J:[[0,1,-1]],Y:[[0,1,-1]]},P:{0:[7,7,7],F:[[7,7,7]],H:[[7,7,7]]},Q:[[5,5,5]],R:{0:[9,9,9],Z:[[94,94,94],[94,94,94]],S:[[94,94,94],[94,94,94]]},S:{0:[4,4,4],Z:{0:[4,4,4],T:[[2, |
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 lang='en'> | |
<head> | |
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'> | |
<title>Sample Page</title> | |
<style> | |
body | |
{ | |
font: 14px Arial, sans-serif; | |
} |
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 lipsum = 'Integer malesuada ligula vel nisi luctus faucibus. Sed imperdiet erat at urna pellentesque eu accumsan orci pharetra. Praesent laoreet sem a erat porttitor ultrices. Aenean pharetra, nisi sed egestas scelerisque, sem nisi lacinia ante, nec laoreet mauris urna a massa. Donec vestibulum, orci a pellentesque molestie, mi eros lobortis ipsum, quis fringilla lacus enim non sapien. Aliquam sed urna ligula. Cras pharetra, sem fermentum bibendum bibendum, nunc magna lacinia risus, non egestas lacus neque quis odio. Donec accumsan nisi luctus velit pretium sed aliquet mauris venenatis. Vestibulum eu mi in sem egestas egestas gravida et lacus. Ut sit amet magna purus, et convallis nulla. Quisque sed urna tortor, in facilisis mi. Donec mollis, quam in porttitor ullamcorper, nisl odio rhoncus magna, ac placerat tellus arcu a metus. Aliquam commodo molestie orci, vitae blandit mi malesuada ac. Nulla at tellus sit amet ipsum eleifend tincidunt elementum quis diam. Mauris enim nulla, sagittis eget eleifend eu, |
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 profiler = { | |
layer: $('<div id="profiler" style="position: fixed; left: 0; bottom: 0; width: 200px; z-index: 25000;"></div>'), | |
cache: {}, | |
init: function(){ | |
this.__inited = true; | |
$('body').mousemove(function(e) { | |
if(e.pageX < 200) | |
{ | |
profiler.layer.css({ | |
left: e.pageX - 200 |
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
.l-page__header .main-menu table.main-menu__table th.item.community.active a.item-link .icon, | |
.l-page__header .main-menu table.main-menu__table th.item.community:hover a.item-link .icon |
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
memoize = function(func, context, single) { | |
function memoizeArg (argPos, depth) { | |
var cache = {}; | |
return function () { | |
if (argPos == 0 && depth == 0) { | |
argPos = arguments.length; | |
} | |
if (argPos <= 0) { | |
if (!(arguments[argPos] in cache)) { | |
cache[arguments[argPos]] = func.apply(context, arguments); |
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
gource --seconds-per-day .001 --highlight-users --hide filenames,dirnames,bloom --start-date '2015-01-01' --highlight-colour 666666 --background-colour 000000 --user-scale .5 |
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 prices = [].concat.apply(Array, document.querySelectorAll('.search-list__column--info-2 .search-list__row:nth-child(2)')).map((e) => (parseInt((e.innerText || '').replace(' ', ''))), 10).filter((v) => (v > 1000)).sort((a, b) => a - b) | |
var sum = prices.reduce((previous, current) => current += previous); | |
var lowMiddle = Math.floor((prices.length - 1) / 2) | |
var highMiddle = Math.ceil((prices.length - 1) / 2) | |
averageAndMedian = [ | |
sum / prices.length, | |
(prices[lowMiddle] + prices[highMiddle]) / 2 | |
] |