Skip to content

Instantly share code, notes, and snippets.

View houseofcat's full-sized avatar

Tristan Hyams houseofcat

View GitHub Profile
// * Summary *
BenchmarkDotNet=v0.11.1, OS=Windows 10.0.17134.286 (1803/April2018Update/Redstone4)
Intel Core i7-8700K CPU 4.70GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
Frequency=4709379 Hz, Resolution=277.0560 ns, Timer=TSC
.NET Core SDK=2.1.402
[Host] : .NET Core 2.1.4 (CoreCLR 4.6.26814.03, CoreFX 4.6.26814.02), 64bit RyuJIT
Core : .NET Core 2.1.4 (CoreCLR 4.6.26814.03, CoreFX 4.6.26814.02), 64bit RyuJIT
Job=Core Runtime=Core
@houseofcat
houseofcat / PrettifyStackTrace.cs
Last active December 6, 2021 04:03
C# Prettify Stack Trace
using System;
using System.Collections.Generic;
namespace PrettifyStackTrace
{
public class Stacky
{
public string ExceptionType { get; set; }
public string Method { get; set; }
public string FileName { get; set; }
@houseofcat
houseofcat / SfDataGridDoubleTap.cs
Last active May 7, 2017 18:30
SfDataGrid - UWP - Cell & Row DoubleClick/DoubleTap EventHandler Example
// Initialize your DataGrid and set the EventHandlers
// The focus here is OpenFileOnDoubleTap
private void InitializeMainDataGrid()
{
MainDataGrid.ItemsSource = ViewModel.MainSearchResults;
MainDataGrid.Columns["FileExt"].AllowGrouping = true;
MainDataGrid.Columns["FilePath"].AllowGrouping = true;
MainDataGrid.Columns["FileName"].AllowGrouping = true;
MainDataGrid.QueryRowHeight += Evt_DataGridQueryRowHeight;