Skip to content

Instantly share code, notes, and snippets.

View NikiforovAll's full-sized avatar
🇺🇦

Oleksii Nikiforov NikiforovAll

🇺🇦
View GitHub Profile
@NikiforovAll
NikiforovAll / README.md
Created June 10, 2021 12:32
GitLab Runner + Docker
@NikiforovAll
NikiforovAll / dates.ipynb
Last active June 9, 2021 19:25
DateTime vs DateTimeOffset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NikiforovAll
NikiforovAll / SDKClient.cs
Last active March 6, 2021 15:25
OpenAPI VS tool chain auto-generated http client example
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
@NikiforovAll
NikiforovAll / ContinueWith.cs
Last active December 18, 2020 23:52
playing with continuewith and custom synchronization context
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace cancellation_demo1
{
public static class ContinueWith
{
@NikiforovAll
NikiforovAll / PermutationsSource.cs
Last active October 19, 2020 20:23
csharp-loves-patterns
using System;
using System.Collections.Generic;
using System.Linq;
namespace LinqProviderExample
{
public class PermutationsSource
{
public PermutationsSource(params string[] words) => this.words = words;
private readonly HashSet<string> _generated = new();
@NikiforovAll
NikiforovAll / asp-net-core-in-action-review.md
Last active October 27, 2022 11:25
improving-as-a-software-developer.md
@NikiforovAll
NikiforovAll / scenario.sh
Created September 21, 2020 16:03
Work with .NET Framework via CLI
# Test
dotnet build --configuration Test1
nunit3-console.exe --explore ./bin/Test1/Tests.dll
nunit3-console.exe --where 'method = MethodName' ./bin/Test1/Tests.dll --trace=Debug
# Find packages via nuget
nuget list Processes -Source <sourceName> -PreRelease -Verbosity detailed
# Database
@NikiforovAll
NikiforovAll / gist:9f7d2e7c1d32a60d334b29bb7aff0e3a
Created September 14, 2020 08:55
Example of how to run workspace containing dotnet core and dotnet framework projects
{
"folders": [
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_contacts\\Nuts.Telecom.Contacts"
},
{
"path": "..\\..\\nuts-telecom\\nuts_telecom_crmbackend_adapter\\Nuts.Telecom.CrmBackendAdapter"
},
{
"path": "..\\mnt-contacts_crmbackend-adapter-devtest"
@NikiforovAll
NikiforovAll / remoteContainers.log
Created September 10, 2020 09:43
vscode-remote-release/issues/3642
[48 ms] Start: Resolving remote
[51 ms] Setting up container for folder or workspace: c:\Users\HYS\Exercism
[208 ms] Start: Run: git rev-parse --show-toplevel
[309 ms] Start: Check Docker is running
[310 ms] Start: Run: docker info
[544 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\Users\HYS\Exercism --filter label=vsch.quality=stable
[774 ms] Start: Run: docker inspect --type container bc64fa72b351
[960 ms] Start: Removing existing container.
[960 ms] Start: Run: docker rm -f bc64fa72b3517c9ccada0128f40261a37f9e216ff211eeeae689e1db0c754020
@NikiforovAll
NikiforovAll / comments.md
Last active August 2, 2020 12:26
vscode workspace example

Design goals

The idea is to have workspace setup

  • List of projects: Component1, Component2
  • source to act project, starting with mnt-

It is useful to have workspace registry. There is a vscode extension to make use of it.