Skip to content

Instantly share code, notes, and snippets.

@johannesegger
johannesegger / App.xaml
Last active August 29, 2015 14:10
MahApps sample code for issue #1690
<Application x:Class="MahAppsTest.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
</ResourceDictionary.MergedDictionaries>
This file has been truncated, but you can view the full file.
10:58:35.195: 1: Connecting to 127.0.0.1:57145
10:58:35.201: 1: Waiting for tasks.
10:58:35.211: 3: Configuration received: <configuration><runner-paths /><runner-infos><runner-info id="xUnit" code-base="xunitcontrib.runner.resharper.runner.9.0.DLL" type-name="XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner" /></runner-infos></configuration>
10:58:35.212: 3: Using JetBrains.ReSharper.TaskRunnerFramework.DummyClientController
10:58:35.258: 5:Runner thread: Processing packets
10:58:35.258: 5:Runner thread: <task-start />
10:58:35.260: 5:Runner thread: Executing 1 root tasks
10:58:35.266: 5:Runner thread: Loading TaskRunner xUnit (XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner) from file:///C:/Users/egger/AppData/Local/JetBrains/Installations/ReSharperPlatformVs11/xunitcontrib.runner.resharper.runner.9.0.DLL
10:58:35.273: 5:Runner thread: <task-start><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.0, Version=2.0.6
This file has been truncated, but you can view the full file.
11:19:17.386: 1: Connecting to 127.0.0.1:57145
11:19:17.391: 1: Waiting for tasks.
11:19:17.401: 3: Configuration received: <configuration><runner-paths /><runner-infos><runner-info id="xUnit" code-base="xunitcontrib.runner.resharper.runner.9.0.DLL" type-name="XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner" /></runner-infos></configuration>
11:19:17.402: 3: Using JetBrains.ReSharper.TaskRunnerFramework.DummyClientController
11:19:17.422: 5:Runner thread: Processing packets
11:19:17.422: 5:Runner thread: <task-start />
11:19:17.423: 5:Runner thread: Executing 1 root tasks
11:19:17.428: 5:Runner thread: Loading TaskRunner xUnit (XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner) from file:///C:/Users/egger/AppData/Local/JetBrains/Installations/ReSharperPlatformVs11/xunitcontrib.runner.resharper.runner.9.0.DLL
11:19:17.434: 5:Runner thread: <task-start><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.0, Version=2.0.6
This file has been truncated, but you can view the full file.
11:32:53.095: 1: Connecting to 127.0.0.1:57145
11:32:53.102: 1: Waiting for tasks.
11:32:53.158: 3: Configuration received: <configuration><runner-paths /><runner-infos><runner-info id="xUnit" code-base="xunitcontrib.runner.resharper.runner.9.0.DLL" type-name="XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner" /></runner-infos></configuration>
11:32:53.159: 3: Using JetBrains.ReSharper.TaskRunnerFramework.DummyClientController
11:32:53.244: 5:Runner thread: Processing packets
11:32:53.244: 5:Runner thread: <task-start />
11:32:53.246: 5:Runner thread: Executing 1 root tasks
11:32:53.253: 5:Runner thread: Loading TaskRunner xUnit (XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner) from file:///C:/Users/egger/AppData/Local/JetBrains/Installations/ReSharperPlatformVs11/xunitcontrib.runner.resharper.runner.9.0.DLL
11:32:53.261: 5:Runner thread: <task-start><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.0, Version=2.0.6
public class BackOffAndRetryTests
{
[Fact]
public void BackOffAndRetryShouldRetry()
{
var result = new List<string>();
Observable
.Create<string>(obs =>
{
obs.OnNext("1");
# Reinstall all packages
Get-Package | Select -Unique Id | % { Update-Package -Reinstall $_.Id }
# Reinstall packages for a specific project
Get-Package | Where { $_.ProjectName -eq "ProjectA" } | % { Update-Package -Reinstall $_.Id -Project $_.ProjectName }
@johannesegger
johannesegger / 01 - EquatableExamples.cs
Last active August 14, 2017 19:45
Simple implementation of IEquatable<T> if you can't use Equals.Fody
public class ChannelIdentifier : GenericEquatable<ChannelIdentifier>
{
public ChannelIdentifier(LiveId liveId, SampleRateId sampleRateId, int channelId)
: base(EqualityComparer.Create((ChannelIdentifier p) => new { p.LiveId, p.SampleRateId, p.ChannelId }))
{
this.LiveId = liveId;
this.SampleRateId = sampleRateId;
this.ChannelId = channelId;
}
Get-AppxPackage messaging | remove-appxpackage
Get-AppxPackage sway | remove-appxpackage
Get-AppxPackage commsphone | remove-appxpackage
Get-AppxPackage windowsphone remove-appxpackage
Get-AppxPackage phone | remove-appxpackage
Get-AppxPackage communicationsapps | remove-appxpackage
Get-AppxPackage people | remove-appxpackage
Get-AppxPackage zunemusic | remove-appxpackage
Get-AppxPackage zunevideo | remove-appxpackage
Get-AppxPackage zune | remove-appxpackage
@johannesegger
johannesegger / VSProject.cs
Created August 31, 2017 07:13
Nuke .sln parser
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Nuke.Common.Tools.VisualStudio
{
public class VSProject
{
public VSProject(string outputType, string assemblyName)
{
@johannesegger
johannesegger / app.js
Created April 16, 2020 10:56
Wort buchstabieren
let alphabet = {
"A": "Anton",
"B": "Berta",
"C": "Cäsar",
"D": "Dora",
"E": "Emil",
"F": "Friedrich",
"G": "Gustav",
"H": "Heinrich",
"I": "Ida",