@SneakyThrows
private String loadUrlDocument(final String name) {
log.debug("Document URL {} downloaded successfully", name);
return minioClient.getPresignedObjectUrl(
GetPresignedObjectUrlArgs.builder()
.method(Method.GET)
.bucket(minioProperties.getBucket())
.object(name)
.expiry(5, TimeUnit.MINUTES)
.build());
}
bucket: documents
url: http://minio:9000
accessKey: minioadmin
secretKey: minioadmin
cloud:
build:
context: ./cloud
container_name: "cloud"
networks:
- app-network
depends_on:
- postgres
ports:
- "8084:8084"
minio:
image: minio/minio:latest
container_name: minio
networks:
- app-network
environment:
- MINIO_ROOT_USER=${MINIO_ASSES_KEY}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}
command: server ~/minio --console-address :9090
ports:
- ‘9090:9090‘
- ‘9000:9000‘
volumes:
- "/data:/data"
networks:
app-network:
driver: bridge
Const BeginFolder="D:"
Dim objFolder, objShell
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.BrowseForFolder(0, "Выбирайте папку для обработки", 1, BeginFolder)
If Not (objFolder Is Nothing) Then
wscript.echo "Folder: " & objFolder.title
wscript.echo "Full Path: " & objFolder.Self.path
Else
Msgbox "Папка не выбрана"
End If
uses crt
var c,d,a:real;
begin
write('c=');
readln(c);
write('d=');
readln(d);
if c<d then
a:=(c+d)/2
else
a:=3;
writeln('a=',a:0:2);
end.
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading.Tasks;
namespace Translit
{
public class TranslitMethods
{
public class Translitter
{
private List<TranslitSymbol> TranslitSymbols { get; set; }
/// <summary>
/// Метод транслитерации русского текстав
/// </summary>
/// <param name="source">Исходная строка на русском</param>
/// <param name="type">Тип транслитерации</param>
/// <returns></returns>
public string Translit(string source, TranslitType type)
{
var result = "";
for (var i = 0; i < source.Length; i++)
{
result = result +
(TranslitSymbols.FirstOrDefault(x => x.SymbolEng == source[i].ToString() && x.TranslitType == type) == null
? source[i].ToString()
: TranslitSymbols.First(x => x.SymbolEng == source[i].ToString() && x.TranslitType == type).SymbolRus);
}
return result;
}
public Translitter()
{
this.TranslitSymbols = new List<TranslitSymbol>();
string сurs = System.IO.File.ReadAllText(@"D:\Transliteration.txt");
// Заполняем сопоставления по транслитерации
foreach (string item in сurs.Split(","))
{
string[] symbols = item.Split(":");
this.TranslitSymbols.Add(new TranslitSymbol
{
TranslitType = TranslitType.сurs,
SymbolRus = symbols[0].ToLower(),
SymbolEng = symbols[1].ToLower(),
});
this.TranslitSymbols.Add(new TranslitSymbol
{
TranslitType = TranslitType.сurs,
SymbolRus = symbols[0].ToUpper(),
SymbolEng = symbols[1].ToUpper()
});
}
}
}
public enum TranslitType
{
сurs
}
// Описание элемента справочника транскрипций
private class TranslitSymbol
{
public TranslitType TranslitType { set; get; }
public string SymbolEng { set; get; }
public string SymbolRus { set; get; }
}
}
}
namespace Translit
{
class Program
{
static void Main(string[] args)
{
//string val = "perevod.txt";
Console.Write("Введите фразу: ");
string val = Console.ReadLine();
Console.WriteLine("Оригинал: " + val);
TranslitMethods.Translitter trn = new TranslitMethods.Translitter();
Console.WriteLine("Транслитерация: " + trn.Translit(val, TranslitMethods.TranslitType.сurs));
Console.ReadKey();
}
}
}