Skip to content

Instantly share code, notes, and snippets.

View DanubeRS's full-sized avatar

Daniel Park DanubeRS

View GitHub Profile
@DanubeRS
DanubeRS / DotTraceDiagnoser.cs
Created March 7, 2018 11:50
DotTraceDiagnoser
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Exporters;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Validators;
@DanubeRS
DanubeRS / NuGet.ps1
Created November 17, 2015 04:05
Simple NuGet PS script
param([switch] $Pack, [string] $Version, [switch] $Push, [string] $ApiKey, [switch] $Clean)
if ($Pack)
{
$Title = "Package Versions"
$Message = "In addition to specifying -Version you need to set the assembly version(s) " +
"via the AssemblyVersionAttribute. Click 'Yes' to continue or 'No' to stop.";
$Yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "I have set the version.";