This file contains hidden or 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 isValidDate(day) { | |
return !(this.earlierLimit && day < this.earlierLimit || this.laterLimit && day > this.laterLimit); | |
} | |
// O, why thou not use variables?!! | |
function isValidDate(day) { | |
var early = this.earlierLimit && day < this.earlierLimit, | |
late = this.laterLimit && day > this.laterLimit; | |
return !early && !late; | |
} |
This file contains hidden or 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
#!/bin/sh | |
REPO="git://github.com/phpmyadmin/phpmyadmin.git" | |
DEST="pma" | |
VER="RELEASE_3_5_7" | |
DIRS= | |
git clone ${REPO} "${DEST}" --no-checkout -b ${VER} --depth=1 | |
(cd "${DEST}" && git reset && git checkout ${DIRS}) |
This file contains hidden or 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 randomChunk() { | |
return (Math.random() * Number.MAX_VALUE).toString(36); | |
} | |
function randomString(length) { | |
var result = ''; | |
do { | |
var chunk = randomChunk(); | |
var overhead = result.length + chunk.length - length; |
This file contains hidden or 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 Белка(орехи) { | |
this.орехи = []; | |
if (орехи.length) { | |
this.получиОрехи(орехи); | |
} | |
} | |
Белка.prototype.получиОрехи = function (орехи) { | |
Array.prototype.push.apply(this.орехи, орехи); | |
}; |
This file contains hidden or 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 ($) { | |
$.fn.serializeJSON = function () { | |
return $.fn.serializeArray.call(this).reduce(function (result, param) { | |
result[param.name] = param.value; | |
return result; | |
}, {}); | |
}; | |
}(jQuery)); |
This file contains hidden or 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
From: ixth <[email protected]> | |
To: [email protected] | |
Subject: test | |
Content-Type: multipart/related; boundary="iddqdboundary" | |
--iddqdboundary | |
Content-Type: text/html; charset="UTF-8" | |
Content-Transfer-Encoding: 8bit | |
<!doctype html> | |
<html> |
This file contains hidden or 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
$('[data-send-request] form').submit(self.submit); | |
$('[data-send-request] [data-send-request-submit]').click(self.submit); | |
//... | |
self.inProgress = false; | |
self.submit = function (event) { | |
e.preventDefault(); | |
if (self.inProgress) { | |
return false; | |
} |
This file contains hidden or 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
! Лочим виджеты «100500 пользователям нравится это» | |
|vk.com/widget_community.php*| | |
|facebook.com/plugins/like_box.php*| | |
## .fb-like-box, #vk_groups | |
! Лочим каменты на ютубе | |
|apis.google.com/*/*/*/*/*/widget/render/comments*| | |
youtube.com## #watch-discussion | |
! Лочим каменты в vk |
This file contains hidden or 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
$debug: false; | |
$column: 50px; | |
$gutter: 30px; | |
.wrap { | |
margin: 0 auto; | |
} | |
.row { | |
display: flex; |
This file contains hidden or 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 charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<header> | |
<div class="menu"> |