Skip to content

Instantly share code, notes, and snippets.

var bus = BusSetup.StartWith<Conservative>()
.Apply<IoCSupport>(s => s.SetAdapter(new StructureMapAdapter())
.SetHandlerInterface(typeof(IHandleMessage<>)))
.Construct();
public class StructureMapAdapter : IocAdapter
{
public IEnumerable<object> GetAllInstances(Type desiredType)
{
using System;
using System.Collections.Generic;
using Microsoft.ServiceBus;
using Microsoft.ServiceBus.Messaging;
namespace Infrastructure.Azure
{
public class ServiceBus
{
public class PersonSummaryIndex : AbstractIndexCreationTask<PersonProjection>
{
public PersonSummaryIndex()
{
Map = people => from person in people
select new
{
person.Id,
Query = new object[]
{
public class StructureMapHttpControllerActivator : IHttpControllerActivator
{
private readonly IContainer _container;
public StructureMapHttpControllerActivator(IContainer container)
{
_container = container;
}
public IHttpController Create(
//This is for your web api controllers.
public class HttpControllerActivator : IHttpControllerActivator
{
private readonly IContainer _container;
public HttpControllerActivator(IContainer container)
{
_container = container;
}
public class StructureMapDependencyResolver : ServiceLocatorImplBase
{
private const string StructuremapNestedContainerKey = "Structuremap.Nested.Container";
public IContainer Container { get; set; }
private HttpContextBase HttpContext
{
get
{
// All the user to register where the context comes from

I like Learn You a Haskell as a reference and cheat-sheet but I found it a little slow for learning Haskell.

Here's my recommended order for just learning Haskell:

http://www.seas.upenn.edu/~cis194/lectures.html Brent Yorgey's course is the best I've found so far and replaces both Yann Esposito's HF&H and the NICTA course. This course is particularly valuable as it will not only equip you to write Haskell but also help you understand parser combinators.

Real World Haskell is available online. (Thanks bos!)

I recommend RWH as a reference (thick book). The chapters for parsing and monads are great for getting a sense for where monads are useful. Other people have said that they've liked it a lot. Perhaps a good follow-up for practical idioms after you've got the essentials of Haskell down?

using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using Fasterflect; // http://nuget.org/packages/fasterflect -- PM> Install-Package fasterflect
namespace Overby.Data
{
public class BulkInsertEventArgs<T> : EventArgs
using System.Globalization;
using System.Threading;
var test = "aaaaaaaaaaaaaaaaaaaa";
var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
foreach(var culture in cultures)
{
Thread.CurrentThread.CurrentCulture = culture;
var gulp = require('gulp'),
gulpif = require('gulp-if'),
less = require('gulp-less'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
runSequence = require('run-sequence'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),