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.ServiceModel.Activation; | |
using System.Web.Hosting; | |
using System.Web.Routing; | |
namespace WcfService1.App_Code | |
{ | |
public static class AppStart | |
{ | |
public static void AppInitialize() |
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
namespace HelloWorldNancy | |
{ | |
using System; | |
using System.Collections.Generic; | |
using LightInject; | |
using Nancy; | |
using Nancy.Bootstrapper; | |
using Nancy.Diagnostics; |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
IBar bar = new Bar(); | |
// Can you guess the output? | |
bar.Execute("TEST"); | |
} | |
} |
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
/********************************************************************************* | |
The MIT License (MIT) | |
Copyright (c) 2014 [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
/********************************************************************************* | |
The MIT License (MIT) | |
Copyright (c) 2014 [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
/********************************************************************************* | |
The MIT License (MIT) | |
Copyright (c) 2014 [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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.Data.SQLite; | |
using System.Data; | |
using System.Text.RegularExpressions; | |
using Dapper; | |
// Used http://bcrypthashgenerator.apphb.com/ to generate the bcrypt hash for "Password123" | |
string passwordHash = @"$2a$10$gAq/R8gZFCimFbRO3DCUHOn9xecwJPeVCQt/NGIjASjSouMFEapXq"; | |
string connectionString = @"Data Source = C:\inetpub\wwwroot\blog\content\data\ghost.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
// A task runner that calls the scriptcs compiler (scriptcs) and | |
// compiles the current opened file. | |
{ | |
"version": "0.1.0", | |
"command": "scriptcs", | |
// The command is a shell script | |
"isShellCommand": true, |
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
scriptcs .\migrate.csx -- directoryContainingMsTestFiles |
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.Collections.Concurrent; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using Akka.Actor; | |
using Akka.DI.Core; | |
using LightInject; | |
namespace LightInject.Akka | |
{ |
OlderNewer