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 NUnit.Framework; | |
namespace PipelineDemo | |
{ | |
public abstract class Handler<T> | |
{ | |
protected Handler<T> next; | |
public void SetInnerHandler(Handler<T> handler) | |
{ |
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
async.waterfall([ | |
download, | |
process, | |
upload | |
], function (err, results) { | |
if (err) { | |
return console.error('processing failed, error: ', err); | |
} | |
console.log('processing completed, results: ', results); | |
}); |
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
<configuration> | |
<config> | |
<add key="DependencyVersion" value="HighestMinor" /> | |
</config> | |
</configuration> |
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 Chaos | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.Owin; | |
using AppFunc = System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>; | |
using MidFunc = System.Func< | |
System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>, | |
System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using FluentNHibernate; | |
using FluentNHibernate.AutoMap; | |
using FluentNHibernate.Cfg.Db; | |
using NHibernate; | |
using NHibernate.Cfg; | |
using NHibernate.Context; | |
using NHibernate.Event; |
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
require 'albacore' | |
require 'fileutils' | |
PROJECT_NAME = "Your Project Here" | |
DOT_NET_PATH = "C:/Windows/Microsoft.NET/Framework/v4.0.30319/" | |
NUNIT_PATH = "Tools/nunit/" | |
MSPEC_PATH = "Tools/mspec/" | |
PROJECT_CONFIG = (ENV['PROJECT_CONFIG'] == nil) ? "Debug" : ENV['PROJECT_CONFIG'] | |
COMPANY_NAME = "Your Company Here" | |
BUILD_NUMBER = (ENV['BUILD_NUMBER'] == nil) ? "1.0.0.0" : ENV['BUILD_NUMBER'] |
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
#!/usr/bin/env bash | |
# where do you want couchdb and its deps to be installed | |
COUCHDB_PREFIX="/opt/couchdb-1.0.1" | |
# Let's determine the correct arcitecture and choose the installer | |
if [ "`uname -m`" = "x86_64" ]; then | |
echo "Using 64-bit installer" | |
COUCHDB_INSTALLER_DOC_ID="26f246a0fe23d6a53d5326713308f43c" | |
COUCHDB_INSTALLER_BIN="install-couchdb-1.0.1_rel1-linux-x64.bin" |
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/bash | |
# /etc/init.d/selenium | |
# debian-compatible selenium-grid startup script. | |
# Based on jenkins startups | |
# Praneeth Bodduluri <lifeeth[at]gmail.com> | |
# update-rc.d -n -f selenium start 90 2 3 4 5 . stop 10 0 1 6 . | |
### BEGIN INIT INFO | |
# Provides: selenium-grid | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network |
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 class MvcApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() | |
{ | |
// Register your multi-tenant application on app startup | |
FacebookApplication.SetApplication(new MultiTenantFacebookApplication()); | |
} | |
} |
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.Generic; | |
using System.Web; | |
using NHibernate; | |
using NHibernate.Context; | |
using NHibernate.Engine; | |
namespace WebHub.Infrastracture.SessionManagement | |
{ |
OlderNewer