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
<?php | |
class Search extends Controller { | |
/** | |
* @var Elasticsearch\Client | |
*/ | |
private $client; | |
public function before() { |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Требования: нужна библиотека beautifulsoup4 версии не ниже 4.4.1: | |
# "pip install beautifulsoup4" | |
# | |
# Запуск возможен с тремя параметрами: | |
# -host - хост сервера, по умолчанию localhost | |
# -port - порт сервера, по умолчанию 8000 | |
# -site - адрес сайта, без "http://". По умолчанию: habrahabr.ru |
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
<?php | |
/** | |
* Basic function for resize. It doesn't save image. To save use imagejpeg() | |
*/ | |
function resize($width = null, $height = null) | |
{ | |
if (!$width && !$height) { | |
return false; | |
} |
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
<script> | |
jQuery("#termpopup_label").click(function(event) { | |
jQuery("#termpopup").show(); | |
return false; | |
}); | |
jQuery("#termpopup button, #termpopup #termpopup_close").click(function(event) { | |
jQuery("#termpopup").hide(); | |
return false; | |
}); | |
</script> |
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
DAYS = 20 | |
DEVS_COUNT = 4 | |
QA_COUNT = 2 | |
def run(): | |
tasks = { | |
'in_progress': 0, | |
'testing': 0, | |
'rc': 0, |