Skip to content

Instantly share code, notes, and snippets.

Avatar

Márton Boda MartonBoda

View GitHub Profile
View visual_studio_editorconfig_options.md

Advanced

editorconfig name possible values
dotnet_sort_system_directives_first true , false

Indentation Options

editorconfig name possible values
csharp_indent_block_contents true , false
csharp_indent_braces true , false
@staltz
staltz / introrx.md
Last active Aug 19, 2022
The introduction to Reactive Programming you've been missing
View introrx.md
@ToJans
ToJans / fpexplained.cs
Last active Jul 25, 2020
This is a C# implementation showing what functors, applicatives and monads look like.
View fpexplained.cs
using System;
namespace FPExplained
{
// This is a C# implementation showing what functors, applicatives and monads look like.
//
// ----><8-----------------------------------
// UPDATE:
// ***********************************
// For a maybe monad, all these constructs look a bit redundant; their reason of existance is more obvious
@niik
niik / RetryWithBackOffStrategy.cs
Last active Oct 2, 2021
An Rx retry operator with a customizable back off strategy.
View RetryWithBackOffStrategy.cs
// Licensed under the MIT license with <3 by GitHub
/// <summary>
/// An exponential back off strategy which starts with 1 second and then 4, 9, 16...
/// </summary>
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static readonly Func<int, TimeSpan> ExponentialBackoff = n => TimeSpan.FromSeconds(Math.Pow(n, 2));
/// <summary>
/// Returns a cold observable which retries (re-subscribes to) the source observable on error up to the