- Свободная лицензия (в идеале)
- API
- Масштабировать текст по количеству символов (в идеале)
- Быть кроссбраузерным
- Сокращать ссылки и подсвечивать ссылки
- Иметь защиту от XSS
- Конфигурироваться
- Поддерживать историю
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 $initHighlight(block, cls) { | |
try { | |
if (cls.search(/\bno\-highlight\b/) != -1) | |
return process(block, true, 0x0F) + | |
` class="${cls}"`; | |
} catch (e) { | |
/* handle exception */ | |
} | |
for (var i = 0 / 2; i < classes.length; i++) { | |
if (checkCondition(classes[i]) === undefined) |
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
В themes.xml в разделе <thumb>970</thumb> после 970 вставить код | |
<![CDATA[ | |
<style>.block.fields.form .tabs {height: auto;white-space: normal;}</style> | |
<script> | |
/*global $*/ | |
$.dmllcTheme = { | |
tabs: [], | |
addtabs: function() { | |
var tabheaders='',tabcontent = ''; |
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 | |
namespace MyCustomProject; | |
use PHP_CodeSniffer\Runner; | |
use PHP_CodeSniffer\Config; | |
use PHP_CodeSniffer\Reporter; | |
use PHP_CodeSniffer\Files\DummyFile; | |
use PHP_CodeSniffer\Util\Timing; | |
// Include the PHPCS autoloader however you need. |
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
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 | |
ini_set('max_execution_time', 0); | |
ini_set('memory_limit', -1); | |
$host = 'google.com'; | |
$ports = array(21, 25, 80, 81, 110, 143, 443, 587, 2525, 3306); | |
foreach ($ports as $port) | |
{ | |
$connection = @fsockopen($host, $port, $errno, $errstr, 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
<select name="timezone_offset" id="timezone-offset" class="span5"> | |
<option value="-12:00">(GMT -12:00) Eniwetok, Kwajalein</option> | |
<option value="-11:00">(GMT -11:00) Midway Island, Samoa</option> | |
<option value="-10:00">(GMT -10:00) Hawaii</option> | |
<option value="-09:50">(GMT -9:30) Taiohae</option> | |
<option value="-09:00">(GMT -9:00) Alaska</option> | |
<option value="-08:00">(GMT -8:00) Pacific Time (US & Canada)</option> | |
<option value="-07:00">(GMT -7:00) Mountain Time (US & Canada)</option> | |
<option value="-06:00">(GMT -6:00) Central Time (US & Canada), Mexico City</option> | |
<option value="-05:00">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> |