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
namespace ConsoleLesson4; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//1.1 Пример программы без условных конструкций | |
{ | |
Console.WriteLine("Введите первое слагаемое: "); | |
int a = Convert.ToInt32(Console.ReadLine()); |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
namespace App | |
{ | |
public class Program | |
{ | |
static readonly Random random = new(); |
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 Microsoft.EntityFrameworkCore; | |
using Npgsql; | |
using Npgsql.NameTranslation; | |
var context = new Ctx(); | |
/* | |
CREATE TYPE enum_encounter_batch_item_status AS ENUM ('Invalid', 'Processed'); | |
create table "Items" |
Create a memory cache. It's main API - method GetOrAdd(key, valueFactory, token)
. Cache should return value by key, if the value is present. Otherwise, it should asynchronously invoke valueFactory
to get value, and store value that was returned.
If second call with same key is performed, while first call is still executing, it should not perform additional valueFactory
invocation.
public interface ICache
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
version: "3.5" | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
hostname: "localhost" | |
restart: unless-stopped | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://localhost' | |
gitlab_rails['gitlab_shell_ssh_port'] = 8822 |