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
<? | |
IncludeModuleLangFile(__FILE__); | |
class CSocServVKontakte extends CSocServAuth | |
{ | |
const ID = "VKontakte"; | |
const CONTROLLER_URL = "https://www.bitrix24.ru/controller"; | |
protected $entityOAuth = NULL; |
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
parse_value () { | |
local jpath="${1:+$1,}$2" isleaf=0 isempty=0 print=0 | |
case "$token" in | |
'{') parse_object "$jpath" ;; | |
'[') parse_array "$jpath" ;; | |
# At this point, the only valid single-character tokens are digits. | |
''|[!0-9]) throw "EXPECTED value GOT ${token:-EOF}" ;; | |
*) value=$token | |
isleaf=1 | |
[ "$value" = '""' ] && isempty=1 |
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
"use strict"; | |
function _defineProperty(e, t, a) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: a, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = a, e | |
} |
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
curl -X PUT "localhost:9200/products/?pretty" -H 'Content-Type: application/json' -d' | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"analyzer_keyword": { | |
"type": "custom", | |
"tokenizer": "keyword", | |
"filter": [ | |
"lowercase" |
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(e) { | |
var t = {}; | |
function r(n) { | |
if (t[n]) return t[n].exports; | |
var o = t[n] = { | |
i: n, | |
l: !1, | |
exports: {} | |
}; |
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 | |
$q = $modx->newQuery('modContext'); | |
$q->where(array( | |
'key:NOT IN' => array('mgr','spec') | |
)); | |
$contexts = $modx->getCollection('modContext', $q); | |
foreach($contexts as $cx) { | |
$modx->log(1, $cx->get('key')); |
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
public_html/manager/ | |
public_html/img/ | |
error_log* | |
*.jpg | |
*.jpeg | |
*.png | |
public_html/assets/downloads/ | |
public_html/assets/files/ | |
public_html/assets/images/ | |
core/cache/ |
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
data_directory: ../_data/ | |
backup_directory: ../_backup/ | |
data: | |
template_variables: | |
class: modTemplateVar | |
primary: name | |
template_variables_access: | |
class: modTemplateVarTemplate | |
primary: | |
- tmplvarid |
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 | |
/** | |
* Return array with filters | |
* | |
* @param array|string $ids | |
* @param boolean $build | |
* | |
* @return array|boolean | |
*/ | |
public function getFilters($ids, $build = true) { |
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 | |
public function countChildren($links = array()) { | |
$tree = array(); | |
$time = microtime(true); | |
foreach ($links as $link) { | |
$total = 0; | |
$addTVs = $fields_where = $innerJoin = array(); | |
foreach ($link['words'] as $field) { | |
switch ($field['class']) { |