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 bs4 import BeautifulSoup | |
import urllib.request, base64, urllib.error | |
lgn = 'Login' # логин | |
psw = 'Password_123456' # пароль | |
id_credit = '86220838' # номер заявки | |
url_api = 'https://my.pochtabank.ru/dbo/poscreditservice/posLead/status/' | |
url = url_api + id_credit |
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
<? | |
$arFieldsSklad = Array( | |
"PRODUCT_ID" => $PRODUCT_ID, | |
"STORE_ID" => 1, | |
"AMOUNT" => 10, | |
); | |
CCatalogStoreProduct::Add($arFieldsSklad); |
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://dev.1c-bitrix.ru/community/blogs/howto/336.php добавил только папку local | |
2017 год | |
--> | |
<html> | |
<head><title>Создание ссылок на папки bitrix и upload</title></head> | |
<body> | |
<? | |
error_reporting(E_ALL & ~E_NOTICE); | |
@ini_set("display_errors",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
<? | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
$APPLICATION->SetTitle("AJAX"); | |
/* подключаем библиотеку */ | |
CJSCore::Init(array('ajax')); |
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
<? | |
$utmSearch = urldecode($_GET['utm_content']); // utm_content - меняем на метку в которой может быть название товара | |
if($utmSearch) { | |
if (CModule::IncludeModule('search')) { | |
$obSearch = new CSearch; | |
$obSearch->Search(array(//при желании, фильтр можете еще сузить, см.документацию | |
'QUERY' => $utmSearch, | |
'SITE_ID' => SITE_ID, | |
'MODULE_ID' => 'iblock', |
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
print(etree.tostring(root, encoding="utf-8", pretty_print=True).decode('utf-8')) |
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
//Dynamically update/set a sub attribute of a Collection in Meteor | |
var $set = {}; | |
$set['profile.' + fieldname] = name; | |
Meteor.users.update({_id:Meteor.user()._id}, { $set: $set }); | |
/* ECMAScript 6 */ | |
Meteor.users.update( |
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
Router.route('/post/:_id', { | |
// Имя маршрута | |
// Используется для упрощения поиска шаблона, если конечно он не указан | |
// в опциях шаблона. Если name не объявлено то роутер ищет имя основываясь | |
// на пути '/post/:_id' | |
name: 'post.show', | |
// Поддержка устаревшей версии | |
path: '/post/:_id', |
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
< template > | |
{{#each}} | |
{{../price}} | |
{{/each}} | |
< template > | |
// in js | |
Template.parentData().price |
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
<div name="about_show_more_content"> | |
<!-- ТУТ ЗАКРЫТЫЙ ТЕКСТ --> | |
</div> | |
<a name="about_show_more"><i class="arrow"><b> </b></i><span class="pseudo">Подробнее</span></a> |
NewerOlder