$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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.Diagnostics.Contracts; | |
using System.Linq; | |
namespace Merkator.Tools | |
{ | |
public class ArrayHelpers | |
{ | |
public static T[] ConcatArrays<T>(params T[][] arrays) | |
{ |
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
Sub RemoveAllDeletedItemsSubFolders() | |
Dim oDeletedItems As Outlook.Folder | |
Dim oFolders As Outlook.Folders | |
Dim oItems As Outlook.Items | |
Dim i As Long | |
'Obtain a reference to deleted items folder | |
Set oDeletedItems = Application.Session.GetDefaultFolder(olFolderDeletedItems) | |
Set oFolders = oDeletedItems.Folders | |
For i = oFolders.Count To 1 Step -1 |
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
<!-- Add to .vcxproj file after line importing $(VCTargetsPath)\Microsoft.Cpp.props to have sensible build output folders --> | |
<!-- have VC++ emit build artifacts into \bin and \obj folders like managed proejcts do --> | |
<PropertyGroup> | |
<!-- | |
The VC++ build scripts automatically appends atrailing slash on OutDir, which annoys some tools, | |
so I added OutputDirectory w/o the slash. Also, I'm using "PlatformShortName" so x86 binaries don't | |
end up in the "win32" directory | |
--> |
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
#include <windows.h> | |
#include <pathcch.h> | |
#include <string> | |
#pragma comment(lib, "pathcch") | |
namespace impl | |
{ | |
void check(HRESULT const result) | |
{ |
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
class Konsole : IDisposable | |
{ | |
ConsoleColor _orig_fg; | |
public static IDisposable Color(ConsoleColor fg) | |
{ | |
var k = new Konsole() | |
{ | |
_orig_fg = Console.ForegroundColor | |
}; |