Skip to content

Instantly share code, notes, and snippets.

Johannes Egger johannesegger

Block or report user

Report or block johannesegger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View run.ps1
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
View VSProject.cs
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 / 01 - EquatableExamples.cs
Last active Aug 14, 2017
Simple implementation of IEquatable<T> if you can't use Equals.Fody
View 01 - EquatableExamples.cs
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;
}
View BackOffAndRetryTests.cs
public class BackOffAndRetryTests
{
[Fact]
public void BackOffAndRetryShouldRetry()
{
var result = new List<string>();
Observable
.Create<string>(obs =>
{
obs.OnNext("1");
View reinstall-all-nuget-packages.ps1
# 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 }
View JetBrains_ReSharper_TaskRunner_CLR45_x64.2015-04-13T11-32-52#4468.log
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
View JetBrains_ReSharper_TaskRunner_CLR45_x64.2015-04-13T11-19-17#7424.log
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
View JetBrains_ReSharper_TaskRunner_CLR45_x64.2015-04-13T10-58-35#11900.log
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
@johannesegger
johannesegger / App.xaml
Last active Aug 29, 2015
MahApps sample code for issue #1690
View App.xaml
<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>
You can’t perform that action at this time.