Skip to content

Instantly share code, notes, and snippets.

View ihordyrman's full-sized avatar

Ihor ihordyrman

View GitHub Profile
Import-Module posh-git
Import-Module oh-my-posh
Import-Module Terminal-Icons
Import-Module PSReadLine
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PoshPrompt -Theme powerlevel10k_rainbow
Set-PSReadLineOption -Colors @{ Command = 'Blue' }
Set-PSReadLineOption -EditMode Windows
@ihordyrman
ihordyrman / Program.cs
Created February 13, 2022 07:27
Int awaiting
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
public class Program
{
public static async Task Main()
{
Console.WriteLine(await 1);
}
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
internal class Program
{
public static void Main()
{
var mem = MemoizeFunction<string, string>(GetWebPage);
@ihordyrman
ihordyrman / Program.cs
Created January 20, 2021 13:46
Azure Functions Orchestration
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using CoreFtp;
using Microsoft.Azure.Management.AppService.Fluent;
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent.Authentication;
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
@ihordyrman
ihordyrman / MergeSort_LinkedList.cs
Created November 8, 2020 11:12
Sorting for LinkedList
using System;
namespace MergeSort_LinkedList
{
internal class ListNode
{
public int Val { get; set; }
public ListNode Next { get; set; }
public ListNode(int val = 0, ListNode next = null)