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.Text; | |
public class PaddedText | |
{ | |
public PaddedText() | |
{ | |
this.SpaceCharacter = ' '; | |
} | |
public char SpaceCharacter { get; set; } |
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.Linq; | |
using System.Text; | |
public class NegativesNotAllowedException : Exception | |
{ | |
} | |
/// <summary> |
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
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] | |
public class InMemoryTestAttribute : TraitAttribute | |
{ | |
public InMemoryTestAttribute() | |
: base("Category", "Fast") | |
{ | |
} | |
} | |
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] |
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
Dir['**/*'] \ | |
.select { |d| File.directory?(d) } \ | |
.select { |d| (Dir.entries(d) - %w[ . .. ]).empty? } \ | |
.each { |d| Dir.rmdir d } |
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.IO; | |
using System.Text; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
public static class ITaskItemExtensions | |
{ | |
public static void EnsureFolderExists(this ITaskItem folder) | |
{ |
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.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
namespace transpng | |
{ | |
class Program | |
{ | |
static int Main(string[] args) | |
{ |
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 Microsoft.Owin; | |
using Microsoft.Owin.FileSystems; | |
using Microsoft.Owin.Hosting; | |
using Microsoft.Owin.StaticFiles; | |
using Owin; | |
using System; | |
#if DEBUG | |
[assembly: OwinStartup(typeof(OwinTestApp.DebugStartup))] | |
#else |
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
var list = new List<Uri>(); | |
list.Add(new Uri("http://www.madeup.com/1/")); | |
list.Add(new Uri("http://www.madeup.com/1/2/")); | |
list.Add(new Uri("http://www.madeup.com/1/2/3/4/5/6/7/8")); | |
list.Add(new Uri("http://www.madeup.com/1/2/3/4/")); | |
list.Add(new Uri("http://www.madeup.com/1/2/3")); | |
list.Add(new Uri("http://www.madeup.com/1/3/5/7/")); | |
list.Add(new Uri("http://www.madeup.com/1/4/6/8/10")); | |
list.Add(new Uri("http://www.madeup.com/1/3/5/7/9")); |
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 HyperLinkEventArgs : EventArgs | |
{ | |
public HtmlDocument Document { get; set; } | |
public string FilePath { get; set; } | |
public string Link { get; set; } | |
public int Line { get; set; } |
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 HtmlFileFinder | |
{ | |
public IEnumerable<string> Find(string folder) | |
{ | |
var htmlList = new List<string>(); | |
foreach (var html in Directory.EnumerateFiles(folder, "*.htm?", SearchOption.AllDirectories)) | |
{ | |
htmlList.Add(html); | |
} |
OlderNewer