Skip to content

Instantly share code, notes, and snippets.

View kolosovpetro's full-sized avatar

Petro Kolosov kolosovpetro

View GitHub Profile
using System;
namespace CoinChangeProblem.UI
{
public static class Program
{
public static void Main()
{
var user = new User("initial_name");
user.SetName("test_1");
using System;
using System.Collections.Generic;
using System.Linq;
namespace CoinChangeProblem
{
public static class DynamicChangeHelper
{
public static int MinimalChangeForCoin(int coin, IEnumerable<int> coins)
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using MangoAPI.Application.Interfaces;
using Microsoft.AspNetCore.Http;
namespace MangoAPI.Application.Services
{
using MangoAPI.Application.Interfaces;
using MangoAPI.Domain.Constants;
using MangoAPI.Domain.Entities;
using System;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
version: '3.4'
networks:
cqrs-api-docker-postgres-dev:
driver: bridge
services:
cqrs-api-docker-postgres-dev:
container_name: cqrs_api_postgres
image: cqrs-api-docker-postgres-dev:latest
@kolosovpetro
kolosovpetro / ei.cfg
Created December 24, 2021 09:57
Put to sources folder of UEFI bootable USB device with Windows 10 to be able to choose OS edition e.g Education, Pro, Home ...
[Channel]
_Default
[VL]
0
powershell -Command "Remove-Item -LiteralPath 'node_modules' -Force -Recurse"
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Base_;
typedef struct Base_VTable_
{
char* (*ToString)(struct Base_*);
} Base_VTable;
@kolosovpetro
kolosovpetro / ducktypes_disposablle.cs
Created May 4, 2021 08:32
ducktypes_disposablle.cs
using System;
using System.Collections.Generic;
namespace ConsoleApp1
{
public class CustomEnumerable
{
public class CustomEnumerator : IDisposable
{
private readonly CustomEnumerable _enumerable;