Skip to content

Instantly share code, notes, and snippets.

View KeithBarrows's full-sized avatar

Keith Barrows KeithBarrows

View GitHub Profile
using BigO.Core;
using BigO.Interfaces;
using BigO.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace BigO
using System.Collections.Generic;
namespace BigO.Interfaces
{
public interface ISearch
{
string Execute(string path);
IEnumerable<string> Execute(IEnumerable<string> paths);
}
}
private static void BuildSearchData(int iterations)
{
// build 676 (26*26) unique 2 letter codes...
List<string> pathParts = new List<string>();
for (char c1 = 'A'; c1 <= 'Z'; c1++)
{
for (char c2 = 'A'; c2 <= 'Z'; c2++)
{
pathParts.Add($"{c1}{c2}");
}
namespace BigO.Models
{
public class Route
{
public string Path { get; set; }
public string Endpoint { get; set; }
}
}
@KeithBarrows
KeithBarrows / IEncoder.cs
Created January 4, 2019 22:17
Interface: IEncoder
using System.Text;
namespace ConsoleApp1.EncoderTask
{
public interface IEncoder {
bool Execute (char source, ref StringBuilder target);
}
}
@KeithBarrows
KeithBarrows / Test01.txt
Created March 22, 2017 21:45
1st Gist - Please ignore
This is a test of the gist system...