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.IO; | |
using System.Text; | |
using System.Threading; | |
namespace LoggerTest | |
{ | |
public static class Logger | |
{ |
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
private Color HashToColor(object o) | |
{ | |
uint iHash = (uint)o.GetHashCode(); | |
uint iR = (iHash & 0x000000FF); | |
uint iG = (iHash & 0x0000FF00)>> 8; | |
uint iB = (iHash & 0x00FF0000) >> 16; | |
return Color.FromArgb((int)iR, (int)iG, (int)iB); | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am bronzite on github. | |
* I am bronzite (https://keybase.io/bronzite) on keybase. | |
* I have a public key ASCGsmO99vjL8ZxML66W1aAYNIfVdm1cCnzwqLmO1eBahAo | |
To claim this, I am signing this object: |
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.IO; | |
namespace TSVFile | |
{ | |
public class TSVFile:IDisposable | |
{ | |
public string[] ColumnHeaders { get; set; } | |
public string[][] Values { 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
private static string[] SplitString (string sInput, char[] cDelimiters, char[] cQuotes, char cEscape) | |
{ | |
List<string> retval = new List<string>(); | |
bool bInQuotes = false; | |
bool bEscape = false; | |
char[] caInput = sInput.ToCharArray(); | |
string sCurString = ""; | |
for(int i=0;i<caInput.Length;i++) | |
{ |