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
Запрос = Новый Запрос(" | |
|// Коэффициент по умолчанию равен 29.3 | |
|ВЫБРАТЬ | |
| НачалоПериода(ДанныеПоТабелю.Период, МЕСЯЦ) КАК Период, | |
| ДниОборот КАК КоличествоРабочихДней, | |
| День(КонецПериода(ДанныеПоТабелю.Период, МЕСЯЦ)) КАК КоличествоДнейВМесяце, | |
| ВЫБОР | |
| КОГДА Месяц(Период) + Год(Период) * 100 = 201801 И ДниОборот = 23 | |
| ТОГДА &Коэффициент // Исключение для января 2018, из за кадрового перевода | |
| ИНАЧЕ &Коэффициент*ДниОборот/День(КонецПериода(ДанныеПоТабелю.Период, МЕСЯЦ)) |
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
using System; | |
namespace BorisExample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Создаю объект |
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
//////////////////////////////////////////////////////////////////////////////// | |
#Область Отбор_в_платежном_календаре | |
&НаКлиенте | |
Процедура УстановитьОтборНаКлиенте(Элемент) | |
// Нельзя выбирать слишком большие периоды | |
Период.ДатаОкончания = Мин(ДобавитьМесяц(Период.ДатаНачала, 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
//============================================================================== | |
// Дополнительные реквизиты и свойства | |
// Вызвать исключение, если не доступна подсистема Дополнительных Реквизитов и Сведений | |
Процедура ПроверитьИспользованиеДополнительныхРеквизитов() | |
Если Не УправлениеСвойствами.СвойстваДоступны() Тогда | |
ВызватьИсключение "Для текущего пользователя не доступна подсистема Дополнительных Реквизитов и Сведений"; | |
ИначеЕсли Не ПолучитьФункциональнуюОпцию("ИспользоватьДополнительныеРеквизитыИСведения") Тогда | |
ВызватьИсключение "Подсистема Дополнительных Реквизитов и Сведений не включена: | |
|Администрирование > Общие настройки > Дополнительные реквизиты и сведения |
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
/////////////////////////////////////////////////////////////// | |
/// Sample nested BLoCs architecture with singltone repository | |
/// https://felangel.github.io/bloc/#/gettingstarted | |
/// https://gist.github.com/PlugFox/99c6118789c4bbc7d04690f5ca93ee21 | |
/// https://dartpad.dartlang.org/99c6118789c4bbc7d04690f5ca93ee21 | |
/////////////////////////////////////////////////////////////// | |
import 'dart:async'; | |
import 'dart:math' as m show Random; // Нужен только в примере, для представления провайдеров | |
/* | |
import 'package:flutter_bloc/flutter_bloc.dart'; |
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
/* | |
* Побитовое хранилище int и bool | |
* https://gist.github.com/PlugFox/13363e58a2f8a454a518444a90282825 | |
* https://dartpad.dartlang.org/13363e58a2f8a454a518444a90282825 | |
*/ | |
/* | |
+------------------------- | |
| ВЫВОД // |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Журнал регистрации</title> | |
<style>.container{margin:0 auto;width:100%}@media only screen and (min-width:601px){.container{width:95%}}@media only screen and (min-width:993px){.container{width:90%}}.deep-orange{background-color:#ff5722!important}table,th,td{border:0}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:0}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(255,87,34,0.5)}table.centered thead tr th{text-align:center}tr{border-bottom:1px solid rgba(0,0,0,0.12)}td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-r |
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://dartpad.dartlang.org/d24227a09cbc4ea5fd5b2305e6ec4b68 | |
* https://gist.github.com/PlugFox/d24227a09cbc4ea5fd5b2305e6ec4b68 | |
*/ | |
import 'dart:async'; | |
abstract class Group { | |
List<Element> _children = <Element>[]; |
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
## addusers in this format: | |
#user:CL:password | |
##see for documentation: http://www.3proxy.ru/howtoe.asp#USERS | |
# | |
# Username | |
MyUser:CL:MyPassword |
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
``` | |
server { | |
listen 80; | |
server_name tg.domain.tld; | |
location / { | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass https://api.telegram.org/; | |
client_max_body_size 100M; |