Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
http://labelauty.js.org/ | |
https://lokesh-coder.github.io/pretty-checkbox/ | |
https://github.com/fronteed/iCheck | |
https://github.com/jaywcjlove/magic-input | |
http://abpetkov.github.io/switchery/ | |
https://github.com/zhiyul/switch | |
https://github.com/kleinejan/titatoggle/ | |
https://720kb.github.io/checkbox.css/ |
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
https://tech.yandex.ru/bem/ | |
https://tech.yandex.ru/translate/ | |
https://tech.yandex.ru/mystem/ | |
https://tech.yandex.ru/tomita/ | |
https://tech.yandex.ru/speller/ | |
https://tech.yandex.ru/clickhouse/ | |
https://tech.yandex.ru/elliptics/ | |
https://tech.yandex.ru/webmaster/ | |
https://tech.yandex.ru/validator/ | |
https://tech.yandex.ru/xml/ |
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
Обычный вызов чанка [[!code]]<hr> | |
{% verbatim %}Имитация вызова чанка [[!code]] | |
{% endverbatim %} | |
{% verbatim %}Имитация 2 вызова чанка [[!code2]] | |
{% endverbatim %} |
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 | |
// НЕ ИСПОЛЬЗОВАТЬ НА РАБОЧЕМ САЙТЕ | |
// Плагин сделан с целью изучения | |
function replace_php_tags($matches){ | |
//$res = $modx->getObject('modResource',1); // Внутри функции вызов не работает, причина пока не известна | |
$code = $matches[1]; | |
eval($code); | |
return $php_val; | |
} |
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 | |
require_once 'vendor/autoload.php'; | |
use GeoIp2\Database\Reader; | |
// This creates the Reader object, which should be reused across | |
// lookups. | |
$reader = new Reader('GeoLite2-City.mmdb'); | |
// Replace "city" with the appropriate method for your database, e.g., | |
// "country". |
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
from PIL import Image, ImageEnhance | |
import os | |
from os.path import join | |
def start(): | |
batch("img_source_dir", "img_result_dir", "watermark.png") | |
def batch(infolder, outfolder, watermark): |
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 | |
function replace_modxtags($matches){ | |
$code_entities_match = array('[', ']','{', '}', '!', '`', '*', '~'); | |
$code_entities_replace = array('[',']','{','}', '!', '`', '*', '~'); | |
$code = str_replace( | |
$code_entities_match, | |
$code_entities_replace, | |
htmlentities($matches[1], ENT_QUOTES) | |
); |
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
<HTML> | |
<HEAD> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
</META></HEAD><body> | |
<style>#hidden_fields{display: none;}</style> | |
<select class="putName fr" name="ugolnaklona" id="ugolnaklona" onchange="showFields()" required > | |
<option value="" selected="" disabled="">Просеивающие поверхности</option> | |
<option value="Сыпучий груз">Решетка колосниковая сварная</option> |
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
from PIL import Image, ImageEnhance | |
import os | |
from os.path import join | |
def test(): | |
batch("img", "t", "watermark.png") | |
def batch(infolder, outfolder, watermark): | |
mark = Image.open(watermark) | |
for root, dirs, files in os.walk(infolder): |