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 MaxSubArrayValueCalculator | |
| { | |
| public int Calculate(int[] input) | |
| { | |
| // no values in input | |
| if (input == null || input.Length == 0) | |
| throw new ArgumentException(@"input", @"Argument contains no values"); | |
| // input only has 1 value, so that is the max sum | |
| if (input.Length == 1) | 
  
    
      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 StringConverter | |
| { | |
| public int Convert(string input) | |
| { | |
| int runningTotal = 0; | |
| int multiplier = 1; | |
| // iterate through string from RTL | |
| for (int i = input.Length - 1; i >= 0; i--) | |
| { | 
  
    
      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 DoublyLinkedList | |
| { | |
| public class Node | |
| { | |
| public int Key { get; set; } | |
| public Node Prev { get; set; } | |
| public Node Next { get; set; } | |
| } | |
| public Node Head { get; set; } | 
  
    
      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 SinglyLinkedList | |
| { | |
| public class Node | |
| { | |
| public int Key { get; set; } | |
| public Node Next { get; set; } | |
| } | |
| public Node Head { get; set; } | 
  
    
      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
    
  
  
    
  | # Rakefile | |
| require 'albacore' | |
| require 'FileUtils' | |
| FileList['./tasks/*.rb'].each { |f| require f } | |
| task :default do | |
| puts 'If you need help, run the command `rake -T` to list all available tasks.' | |
| end | 
  
    
      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
    
  
  
    
  | new-sln-hg() | |
| { | |
| slnname=$1 | |
| if [ -n "${slnname}" ] | |
| then | |
| mkdir ${slnname} | |
| cd ${slnname} | |
| cp "/cygdrive/c/Dropbox/Environment/dotNET/empty.sln" "${slnname}.sln" | |
| cp "/cygdrive/c/Dropbox/Environment/Ignores/.hgignore" . | |
| hg init | 
  
    
      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
    
  
  
    
  | new-sln-git() | |
| { | |
| slnname=$1 | |
| if [ -n "${slnname}" ] | |
| then | |
| mkdir ${slnname} | |
| cd ${slnname} | |
| cp "/cygdrive/c/Dropbox/Environment/dotNET/empty.sln" "${slnname}.sln" | |
| cp "/cygdrive/c/Dropbox/Environment/Ignores/.gitignore" . | |
| git init | 
  
    
      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
    
  
  
    
  | new-sln() | |
| { | |
| slnname=$1 | |
| if [ -n "${slnname}" ] | |
| then | |
| mkdir ${slnname} | |
| cd ${slnname} | |
| mkdir src | |
| cp "/cygdrive/c/Dropbox/Environment/dotNET/empty.sln" "${slnname}.sln" | |
| else | 
  
    
      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
    
  
  
    
  | var logger = NLog.LogManager.GetLogger("SampleLogger"); | |
| logger.Trace("Logged Trace"); | |
| logger.Debug("Logged Debug"); | |
| logger.Info("Logged Info"); | |
| logger.Warn("Logged Warn"); | |
| logger.Error("Logged Error"); | |
| logger.Fatal("Logged Fatal"); | 
  
    
      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
    
  
  
    
  | <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log" | |
| layout="${longdate} ${uppercase:${level}} ${message}" /> | |
| <logger name="*" minlevel="Trace" writeTo="f" /> |