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 selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() | |
chrome_options.add_extension("proxy.zip") | |
driver = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=chrome_options) | |
driver.get("http://google.com") | |
driver.close() |
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 sort_nested_arrays( $array, $args = array('votes' => 'desc') ){ | |
usort( $array, function( $a, $b ) use ( $args ){ | |
$res = 0; | |
$a = (object) $a; | |
$b = (object) $b; | |
foreach( $args as $k => $v ){ | |
if( $a->$k == $b->$k ) continue; |
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
if (CModule::IncludeModule('highloadblock')) { | |
$arHLBlock = Bitrix\Highloadblock\HighloadBlockTable::getById(1)->fetch(); | |
$obEntity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($arHLBlock); | |
$strEntityDataClass = $obEntity->getDataClass(); | |
} | |
if (CModule::IncludeModule('highloadblock')) { | |
$rsData = $strEntityDataClass::getList(array( | |
'select' => array('ID','UF_NAME', 'UF_XML_ID'), | |
'order' => array('ID' => 'ASC'), | |
'limit' => '50', |
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
<? | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
$APPLICATION->SetTitle("Новая страница"); | |
?> | |
<? | |
use \Bitrix\Main\Application; | |
use Bitrix\Highloadblock as HL; | |
use Bitrix\Main\Entity; |