This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace EventAccumulatorUtils | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Latest version here: https://gist.github.com/1c20bc400beabef79f390a876758bb4e.git | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace TestGraphUtils | |
{ | |
/// <summary> | |
/// Useful graph builder for testing algorithms | |
/// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace System | |
{ | |
internal class SerializableAttribute : Attribute | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Latest version is here: https://gist.github.com/1eef7d55a19593735b9ecc3fc6449626.git | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Linq; | |
using System.Collections; | |
using PriorityQueueUtils; //https://gist.github.com/affc23dd89950e67ece9ca3b19b9508a.git | |
namespace MergeSortedEnumerablesUtils | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//latest version is here: https://gist.github.com/b1059488d17c52da5a732a100ba6e09f.git | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace CachingEnumeratorUtils | |
{ | |
/// <summary> | |
/// Enumerable doing lazy caching of enumerator, to avoid generating items more than one time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//latest version is here: https://gist.github.com/7d99ff883fdf2ddfe968f6f9c57b1d4a.git | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using PriorityQueueUtils; //from https://gist.github.com/affc23dd89950e67ece9ca3b19b9508a.git | |
using CachingEnumeratorUtils; //from https://gist.github.com/b1059488d17c52da5a732a100ba6e09f.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Latest version is here: https://gist.github.com/affc23dd89950e67ece9ca3b19b9508a.git | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace PriorityQueueUtils | |
{ | |
/// <summary> | |
/// Queue contract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Web.Mvc; | |
using System.Web.WebPages; | |
using System.Linq; | |
public static class WebViewPageExtensions | |
{ | |
/// <summary> | |
/// Functionality similar to the controller's TryUpdateModel() protected method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Method template</Title> | |
<Shortcut>method</Shortcut> | |
<Description>New method template</Description> | |
<Author>Philipp Munin</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Latest version here: https://gist.github.com/b471ea36789d375069020030f600bd3e.git | |
using System; | |
using System.Collections.Generic; | |
namespace ComparerUtils | |
{ | |
public static class Comparer | |
{ | |
public static IComparer<T> From<T>(Comparison<T> compare) |