Skip to content

Instantly share code, notes, and snippets.

@jmarolf
jmarolf / editorconfig.md
Last active June 16, 2025 23:46
List of all options and how they may be implemented in editorconfig

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
@zulhfreelancer
zulhfreelancer / first_commit_in_branch.md
Created December 2, 2016 04:11
How to find the first commit in a Git branch?
$ git log <source_branch>..<feature_branch> --oneline | tail -1

Reference

@pmunin
pmunin / EnumerablePartitionExtension.cs
Last active September 19, 2020 02:29
C# Enumerable extension for Partitioning also know as Pagination- allows to split enumerable into partitions of specified max size
using System.Linq;
public static class EnumerablePartitionExtensions{
/// <summary>
/// Generate lazy partitions for enumerable
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="items">source items to create partitions from</param>