This file contains hidden or 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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "administratorLogin": { | |
| "type": "string" | |
| }, | |
| "sqlPassword": { | |
| "type": "securestring" | |
| }, |
This file contains hidden or 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
| #r @"packages\Streams.0.2.5\lib\Streams.Core.dll" | |
| open System | |
| open System.IO | |
| open System.Collections.Generic | |
| open Nessos.Streams | |
| // make Visual Studio use the script directory | |
| Directory.SetCurrentDirectory(__SOURCE_DIRECTORY__) |
This file contains hidden or 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
| namespace JsonParser | |
| open System | |
| open NUnit.Framework | |
| module Json = | |
| type Token = | |
| | String of string | |
| | Number of string |
This file contains hidden or 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.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Runtime.Remoting.Messaging; | |
| using System.Runtime.Remoting.Proxies; | |
| using System.Threading.Tasks; | |
| namespace Demo | |
| { |
This file contains hidden or 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
| /// <reference path="angular.d.ts" /> | |
| /// <reference path="angular-route.d.ts" /> | |
| 'use strict'; | |
| // Create and register modules | |
| var modules = ['app.controllers','app.directives', 'app.filters', 'app.services']; | |
| modules.forEach((module) => angular.module(module, [])); | |
| // *** Push ngRoute or $routeProvider won't work *** |
This file contains hidden or 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
| Example usages: | |
| public class MyControllerFixture : IUseFixture<ControllerFixtureInit> | |
| { | |
| private readonly MyController _sut; | |
| private ControllerTestContext _controllerTestContext; | |
| private readonly IMyDependency _dependency; | |
| public MyControllerFixture() | |
| { |
This file contains hidden or 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 Newtonsoft.Json; | |
| using System; | |
| using System.Collections.Specialized; | |
| using System.Net; | |
| using System.Text; | |
| //A simple C# class to post messages to a Slack channel | |
| //Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
| public class SlackClient | |
| { |
This file contains hidden or 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 class RunnableInDebugOnlyAttribute : FactAttribute | |
| { | |
| private string _skip; | |
| public override string Skip | |
| { | |
| get | |
| { | |
| return Debugger.IsAttached | |
| ? _skip |
This file contains hidden or 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
| open System.Collections | |
| open System.Configuration | |
| open System.Data.Entity.Design.PluralizationServices | |
| open System.Linq | |
| open FluentMongo.Linq | |
| open MongoDB.Bson | |
| open MongoDB.Driver | |
| open MongoDB.Driver.Builders |
This file contains hidden or 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
| $ErrorActionPreference = "Stop" | |
| Set-ExecutionPolicy RemoteSigned | |
| ECHO "Installing PsGet and PS plugins" | |
| iex ((new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1")) | |
| Install-Module pscx | |
| Install-Module psake | |
| ECHO "FINISHED - Installing PsGet and PS plugins - FINISHED" |
NewerOlder