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
Функция нфПолучитьКЧ_ЕДРПОУ(Код,ВесКоэф,СмещениеКоэф=0) | |
КонтрольнаяСумма=0; | |
Для ПерЦ=1 По СтрДлина(ВесКоэф) Цикл | |
КонтрольнаяСумма=КонтрольнаяСумма+(Число(Сред(Код,ПерЦ,1))*(Число(Сред(ВесКоэф,ПерЦ,1))+СмещениеКоэф)); | |
КонецЦикла; | |
КонтрЧисло = КонтрольнаяСумма-Цел(КонтрольнаяСумма/11)*11; | |
Возврат КонтрЧисло; | |
КонецФункции //ПолучитьКЧ_ЕДРПОУ | |
// нфОшибкаЕДРПОУ =============================== |
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
import shutil | |
from os.path import exists | |
import logging | |
import logging |
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
//Исправь, на правильный путь. | |
var pathTo1C = "c:\\Program Files (x86)\\1cv82\\8.2.15.319\\bin\\1cv8.exe"; | |
//var pathToBase = "d:\\WORK\\1C\\diff1c\\basediff"; | |
var pathToBase = "d:\\WORK\\repository\\repo\\git\\antbuild\\ibService"; | |
var pathToV8reader = "d:\\WORK\\repository\\repo\\git\\precommit1c\\V8Reader.epf"; | |
objArgs = WScript.Arguments; | |
num = objArgs.length; | |
if (num < 2) | |
{ |
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
var thisNamespace = ""; | |
exports.handlers = { | |
beforeParse:function(e){ | |
//Заменим все переводы строк на православно верный. | |
var logger = require("jsdoc/util/logger"); | |
var sourceText = e.source.replace("\t\n", "\n", "gm"); | |
var syntax = SyntaxAnalysis.AnalyseModule(sourceText); | |
var Lines = sourceText.split("\n"); | |
for (var i = syntax.moduleMethodComments.length - 1; i >= 0; i--) { |
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
# encoding: utf-8 | |
require "logstash/inputs/base" | |
require "logstash/namespace" | |
require "socket" | |
# Read rows from an sqlite database. | |
# | |
# This is most useful in cases where you are logging directly to a table. | |
# Any tables being watched must have an 'id' column that is monotonically |
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
Процедура ОтключитсяОтСервераSW() Экспорт | |
Команда = Неопределено; | |
мЕстьПодключениеКСерверу = Ложь | |
КонецПроцедуры | |
Процедура ПодключитсяКСерверуSW() Экспорт | |
Если мЕстьПодключениеКСерверу Тогда | |
Возврат |
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
@echo off | |
set tmp=T:\Temp | |
set temp=T:\Temp | |
ram set USERPROFILE=T:\Profile | |
if not exist T:\APPDATA mkdir T:\APPDATA | |
rem if not exist T:\APPDATA\1C\1CEStart\ mkdir T:\APPDATA\1C\1CEStart\ | |
rem xcopy %APPDATA%\1C\1CEStart\*.* t:\APPDATA\1C\1CEStart\ | |
if not exist T:\APPDATA\1C\1CEStart\ xcopy %APPDATA%\1C\1CEStart\*.* t:\APPDATA\1C\1CEStart\ | |
set APPDATA=t:\APPDATA | |
start /D "c:\Program Files (x86)\1cv82\common\" 1cestart.exe |
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
var fs = require('fs'); | |
var filePath = 'coverage.json'; | |
var importStream = fs.createReadStream(filePath, {flags: 'r', encoding: 'utf-8'}); | |
importStream.on('data', function(chunk) { | |
console.info(chunk); | |
var pleaseBeAJSObject = JSON.parse(chunk); | |
// insert pleaseBeAJSObject in a database |
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/sh | |
export WORKSPACE=`pwd` | |
echo $WORKSPACE | |
if test -d $WORKSPACE/build/ib; then rm -rf $WORKSPACE/build/ib; fi | |
mkdir $WORKSPACE/build -p | |
mkdir $WORKSPACE/build/ib -p | |
if test -d $WORKSPACE/test-reports; then rm -rf $WORKSPACE/test-reports; 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
global | |
maxconn {{or (key "service/haproxy/maxconn") 256}} | |
debug | |
defaults | |
mode http | |
timeout connect {{or (key "service/haproxy/timeouts/connect") "5000ms"}} | |
timeout client {{or (key "service/haproxy/timeouts/client") "50000ms"}} | |
timeout server {{or (key "service/haproxy/timeouts/server") "50000ms"}} |
OlderNewer