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 LinkedListNode | |
{ | |
public int val; | |
public LinkedListNode next; | |
} | |
public class LinkedListHelper | |
{ | |
public static LinkedListNode MergeLinkedLists(LinkedListNode head1, LinkedListNode head2) | |
{ |
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 StructureMap; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http.Dependencies; | |
/// <summary> | |
/// Defines the dependency resolver using structure map. | |
/// </summary> | |
public sealed class StructureMapDependencyResolver : IDependencyResolver, IDisposable |
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 static class Program | |
{ | |
public static void Main(string[] arga) | |
{ | |
const int TOTAL_MONTHS = 12; | |
var fromDate = new DateTime(2013, 08, 15); | |
var toDate = new DateTime(2014, 08, 14); | |
var totalDays = 0; |
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.Net.Http; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// </summary> | |
public class MessageLoggingHandler : DelegatingHandler | |
{ |
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; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using Elmah; | |
using ServiceStack.Redis; | |
/// <summary> | |
/// Provides storage for error logging using Redis. |