Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am alex-doe on github.
  • I am alexdoe (https://keybase.io/alexdoe) on keybase.
  • I have a public key whose fingerprint is 462C 6D87 7FFF 3B20 5F8D D432 C889 5BC1 5562 0AE7

To claim this, I am signing this object:

@alex-doe
alex-doe / Program.cs
Last active June 24, 2016 09:42
LogException in Interval Class
// The MIT License(MIT)
//Copyright(c) 2016 alex-doe
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files(the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
@alex-doe
alex-doe / FaxAlarmSource.cs
Created June 23, 2016 17:25
Idee ohne endlosem Logging
void IAlarmSource.RunThread()
{
bool isNewError = true;
while (true)
{
try
{
//.tif or .pdf
FileInfo[] files = _faxPath.GetFiles("*.*", SearchOption.TopDirectoryOnly)
.Where(_ => _.Name.EndsWith(".tif", StringComparison.InvariantCultureIgnoreCase) || _.Name.EndsWith(".pdf", StringComparison.InvariantCultureIgnoreCase))