Skip to content

Instantly share code, notes, and snippets.

View Dzitskiy's full-sized avatar

Viktor Dzitskiy Dzitskiy

View GitHub Profile
@Dzitskiy
Dzitskiy / Dropdown Markdown.md
Created March 12, 2025 10:35 — forked from Wegazz/Dropdown Markdown.md
Выпадающий список MarkDown
A dropdown list for markdown
  1. First item must be preceeded with an empty line.
  2. Markdown renders perfectly.
  3. Extra item.
@Dzitskiy
Dzitskiy / dotnet-core-sln-scaffolding-and-run
Created November 8, 2024 16:21 — forked from dbaltas/dotnet-core-sln-scaffolding-and-run
Cli commands to create a hello world solution with one console project and one test project, that also runs the app and tests. Works for osx!
mkdir HelloWorld
cd HelloWorld
dotnet new sln --name HelloWorld
dotnet new console --name HelloWorld
dotnet new nunit --name HelloWorld.UnitTests
dotnet sln add HelloWorld/HelloWorld.csproj
dotnet sln add HelloWorld.UnitTests/HelloWorld.UnitTests.csproj
dotnet build
dotnet test
dotnet run --project HelloWorld
@Dzitskiy
Dzitskiy / markdown-details-collapsible.md
Created October 10, 2024 13:39 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@Dzitskiy
Dzitskiy / docker_rus.md
Created August 15, 2024 23:00 — forked from wtw24/docker_rus.md
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@Dzitskiy
Dzitskiy / latency_numbers.md
Created May 22, 2024 15:57 — forked from GLMeece/latency_numbers.md
Latency Numbers Every Programmer Should Know - MarkDown Fork

Latency Comparison Numbers

Note: "Forked" from Latency Numbers Every Programmer Should Know

Event Nanoseconds Microseconds Milliseconds Comparison
L1 cache reference 0.5 - - -
Branch mispredict 5.0 - - -
L2 cache reference 7.0 - - 14x L1 cache
Mutex lock/unlock 25.0 - - -
@Dzitskiy
Dzitskiy / ExceptionHandlingDotnet9.cs
Created April 15, 2024 10:32 — forked from davepcallan/ExceptionHandlingDotnet9.cs
Exception Handling .NET 9 v .NET 8
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Environments;
namespace ExceptionBenchmark
{
[Config(typeof(Config))]
@Dzitskiy
Dzitskiy / Visual Studio 2022 Product Key
Created March 11, 2024 14:29
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@Dzitskiy
Dzitskiy / emojis_unicode.md
Created May 4, 2023 16:00 — forked from naiieandrade/emojis_unicode.md
Unicode emojis for Telegram
emoji unicode emoji unicode
✒️ :black_nib: \U00002712 ✔️ :heavy_check_mark: \U00002714
✖️ :heavy_multiplication_x: \U00002716 ‼️ :bangbang: \U0000203C
✳️ :eight_spoked_asterisk: \U00002733 :sparkles: \U00002728
:grey_exclamation: \U00002755 ✴️ :eight_pointed_black_star: \U00002734
❄️ :snowflake: \U00002744 ❇️ :sparkle: \U00002747
:x: \U0000274c :negative_squared_cross_mark: \U0000274e
using Microsoft.AspNetCore.Mvc;
using System.Text;
using DependencyInjectionAndServiceLifetimes.Interfaces;
namespace DependencyInjectionAndServiceLifetimes.Controllers
{
public class HomeController : Controller
{
private readonly IExampleTransientService _exampleTransientService1;
private readonly IExampleTransientService _exampleTransientService2;
@Dzitskiy
Dzitskiy / Order.cs
Created November 29, 2022 16:42 — forked from jzakaryan/Order.cs
public class Order
{
public Guid ID { get { /*…*/ } }
public decimal Total { get { /*…*/ } }
public List<Item> Items { get { /*…*/ } }
public User User { get { /*…*/ } }
public void Load() { /*…*/ }
public void Save() { /*…*/ }
public void Update() { /*…*/ }
public void Remove() { /*…*/ }