Skip to content

Instantly share code, notes, and snippets.

@crmckenzie
crmckenzie / Install-VSCommandPrompt.ps1
Last active October 8, 2015 17:18
Install-VSCommandPrompt
function Install-VSCommandPrompt($version = "2013")
{
switch ($version)
{
2013 { $toolsVersion = "120" }
2012 { $toolsVersion = "110" }
2010 { $toolsVersion = "100" }
2008 { $toolsVersion = "90" }
2005 { $toolsVersion = "80" }
@crmckenzie
crmckenzie / BadApiDesign.cs
Created August 15, 2012 20:47
Bad Batch API Design
public interface IRecordProcessor
{
Response Process(Record[] records);
}
public class Response
{
public bool Success { get; set; }
}