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
#!/bin/bash | |
docker pull swift | |
docker run -it --name swifttest --mount type=bind,source=c:/projects/swift,target=/app --security-opt seccomp=unconfined swift:4.1 /bin/bash | |
# Run these next commands when you want to start your container the next time after you create it | |
docker start swifttest |
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 static class EnumerableExtensions | |
{ | |
public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> enumerable, Func<TSource, TSource, bool> comparer) | |
{ | |
return enumerable.Distinct(new LambdaComparer<TSource>(comparer)); | |
} | |
public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> enumerable, IEnumerable<TSource> comparison, Func<TSource, TSource, bool> comparer) | |
{ | |
return enumerable.Except(comparison, new LambdaComparer<TSource>(comparer)); |
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 LambdaComparer<T> : IEqualityComparer<T> | |
{ | |
private readonly Func<T, T, bool> _lambdaComparer; | |
private readonly Func<T, int> _lambdaHash; | |
public LambdaComparer(Func<T, T, bool> lambdaComparer) : | |
this(lambdaComparer, o => 0) | |
{ | |
} |
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
Set-ItemProperty -Path HKCU:\Software\Microsoft\Office\Lync -Name EnableSkypeUI -Value 1 -Type DWord |
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 TestApp.Interfaces; | |
using Microsoft.Practices.Prism.PubSubEvents; | |
namespace TestApp.Services | |
{ | |
public class EventSubscriberService : IEventSubscriberService, IDisposable | |
{ | |
private readonly IEventAggregator m_eventAggregator; |