Skip to content

Instantly share code, notes, and snippets.

BenchmarkDotNet=v0.11.5, OS=Windows 10.0.17763.475 (1809/October2018Update/Redstone5)
AMD A4-6300 APU with Radeon(tm) HD Graphics, 1 CPU, 2 logical cores and 1 physical core
.NET Core SDK=2.2.104
  [Host] : .NET Core 2.2.2 (CoreCLR 4.6.27317.07, CoreFX 4.6.27318.02), 64bit RyuJIT
  Core   : .NET Core 2.2.2 (CoreCLR 4.6.27317.07, CoreFX 4.6.27318.02), 64bit RyuJIT

Job=Core  Runtime=Core  
@tldrlol
tldrlol / ForVsForeach.cs
Last active May 5, 2019 12:23 — forked from Trapov/ForVsForeach.cs
ForVsForeach
namespace ForVsForeach
{
using System.Buffers;
using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using System.Collections.Generic;
/* hide blocked messages */
.messageGroupBlocked-3wrQQX,
.messageGroupBlocked-JqfeE2 {
display: none;
}
/* disable spoiler tags */
.theme-dark .spoilerText-3p6IlD,
.theme-light .spoilerText-3p6IlD {
background: none;
#!/bin/sh
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default|tr -d \')/ cursor-blink-mode off
# %userprofile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Import-Module PSReadline
Set-PSReadlineOption -EditMode Vi
Set-PSReadlineKeyHandler -function ReverseSearchHistory -ViMode Command ctrl+r
Set-PSReadlineKeyHandler -function ReverseSearchHistory -ViMode Insert ctrl+r
Set-PSReadlineKeyHandler -function ForwardSearchHistory -ViMode Command ctrl+s