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 BinaryTree | |
{ | |
private $items = []; | |
private $tree; | |
public function __construct($items) | |
{ | |
foreach ($items as $item) { |
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 | |
// @note Test #1 | |
// Example usage: php brackets-checker.php '({()}[])' | |
$expressions = [ | |
'()]', | |
'()[]', | |
'(}', | |
'({[]})', |
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
DEVLINKS=/dev/serial/by-id/usb-Sierra_Wireless__Incorporated_USB_306_359475021800439-if00-port0 /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.3:1.0-port0 | |
DEVNAME=/dev/ttyUSB0 | |
DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/ttyUSB0/tty/ttyUSB0 | |
ID_BUS=usb | |
ID_MODEL=USB_306 | |
ID_MODEL_ENC=USB\x20306 | |
ID_MODEL_FROM_DATABASE=MC8700 Modem | |
ID_MODEL_ID=68a3 | |
ID_PATH=platform-3f980000.usb-usb-0:1.1.3:1.0 | |
ID_PATH_TAG=platform-3f980000_usb-usb-0_1_1_3_1_0 |
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
default partial alphanumeric_keys modifier_keys | |
xkb_symbols "basic" { | |
name[Group1]= "English (US)"; | |
key <TLDE> { [ grave, asciitilde ] }; | |
key <AE01> { [ 1, exclam ] }; | |
key <AE02> { [ 2, at ] }; | |
key <AE03> { [ 3, numbersign ] }; | |
key <AE04> { [ 4, dollar ] }; |
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
/* Слайдер товаров */ | |
.product-slider { | |
position: relative; | |
margin: 0 auto; | |
padding: 0; | |
width: 100%; | |
display: inline-block; | |
box-sizing: border-box; | |
<<<<<<< HEAD | |
li { |
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
#!/bin/bash | |
# Require: | |
# sudo apt-get install jpegoptim pngnq advancecomp | |
FILE_PATH=$1 | |
if [[ -z $FILE_PATH ]]; then | |
echo 'Не указан каталог или изображение!' | |
exit -1; | |
fi |
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: php5-xmlrpc | |
// sudo apt-get install php5-xmlrpc | |
// @note For debug only | |
header('Content-Type: text/plain;'); | |
$wpUrl = ''; | |
$wpUser = ''; |
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 | |
$abcGroups = ['A', 'B', 'C']; | |
$redis = new Redis(); | |
$redis->connect('127.0.0.1', 6379); | |
if (!isset($_COOKIE['abc_group'])) { | |
$lastUsedAbcGroupNumber = $redis->get('last_used_abc_group_number'); |
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
Boot Error | |
Something went wrong while loading bunny_docs.rb | |
Errno::EBADF: Bad file descriptor @ fptr_finalize - /var/lib/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb | |
/var/lib/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `close' | |
/var/lib/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `open' | |
/var/lib/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `<top (required)>' | |
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' | |
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' |
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
Building nokogiri using packaged libraries. | |
Building libxml2-2.8.0 for nokogiri with the following patches applied: | |
- 0001-Fix-parser-local-buffers-size-problems.patch | |
- 0002-Fix-entities-local-buffers-size-problems.patch | |
- 0003-Fix-an-error-in-previous-commit.patch | |
- 0004-Fix-potential-out-of-bound-access.patch | |
- 0005-Detect-excessive-entities-expansion-upon-replacement.patch | |
- 0006-Do-not-fetch-external-parsed-entities.patch | |
- 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch | |
- 0008-Improve-handling-of-xmlStopParser.patch |