This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem source arg below can be semicolon-delim ie '-source "https://nuget.org/api/v2/;\\server\share"' | |
.\src\.nuget\nuget.exe install src\.nuget\packages.config -source "" -RequireConsent -o "src\packages" | |
if '%1'=='/?' goto help | |
if '%1'=='-help' goto help | |
if '%1'=='-h' goto help | |
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\src\packages\psake.4.2.0.1\tools\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Moq; | |
using Should; | |
namespace $NAMESPACE$ | |
{ | |
[TestClass] | |
public class ArrangeActAssertTemplate | |
{ | |
[TestMethod] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Should; | |
namespace $NAMESPACE$ | |
{ | |
[TestClass] | |
public class TestCaseClassPerFixtureTemplate | |
{ | |
public static string actual; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text.RegularExpressions; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace $NAMESPACE$ | |
{ | |
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] | |
public sealed class ExpectedExceptionWithMessageAttribute : ExpectedExceptionBaseAttribute | |
{ | |
readonly bool _allowDerivedTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\dev\FOO\IntegrationTests\bin\Release>..\..\..\packages\Benchmarque.0.1.10\tools\Benchmarque.Console.exe .\IntegrationTests.dll | |
Subject Assembly: .\IntegrationTests.dll | |
Loading subject assembly: c:\dev\FOO\IntegrationTests\bin\Release\IntegrationTests.dll | |
Benchmark ReadingBenchmark, Runner IDeserializeContent, 1 iterations | |
Implementation Duration Difference Each Multiplier | |
============================================================================== | |
Resx -0- -0- 89 | |
Protobuf -0- -0- 1135 12.75x | |
MsgPack 2ms 2ms 3786 42.54x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here is something that i have worked on for a long time. | |
you can sort out the proportions to taste, but it will make you a solid bloody maria. | |
even in south sudan you can find most of these things. | |
you may need to sneak the tomato juice in, or use ceres. | |
i have not put in proportions, but have listed these things in order of importance/operation/process. it's art. deal. | |
if you hate things that taste good you can substitute vodka for tequila | |
juba / 2012 | |
================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static Task<TResult> WrapTask<TResult>(this Task<TResult> task, Action<TResult> failedResultFactory) | |
{ | |
TaskCompletionSource<TResult> tcs = new TaskCompletionSource<TResult>(); | |
task.ContinueWith(result => tcs.SetResult(result); | |
task.Catch(exception => tcs.SetResult(failedResultFactory())); | |
return tcs.Task; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function global:ExposeIIS() | |
{ | |
$config = [xml] ( get-content $env:IIS_USER_HOME/config/applicationhost.config ) | |
# Add in new bindings for computer name | |
foreach($site in $config.configuration."system.applicationHost".sites.site) | |
{ | |
foreach($bindings in $site.bindings) | |
{ | |
# no need to add another binding for machine name if its exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IOrderMe | |
{ | |
Order PreferredOrder(); | |
// or somethign like "void OrderMe(OrderContext relativeToOtherItems);" | |
} | |
public abstract class Order | |
{ |