Skip to content

Instantly share code, notes, and snippets.

On holidays, not checking notifications

Brendan Forster shiftkey

On holidays, not checking notifications
View GitHub Profile
webframp /
Created Jul 25, 2017
Signing git commits on github using gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

View notification_fail.cs
var toast = ToastContentFactory.CreateToastText02();
var item = x.First();
toast.TextHeading.Text = item.Subject.Type;
toast.TextBodyWrap.Text = "DO IT";
toast.Lang = "en_US";
toast.BaseUri = "";
toast.Duration = BoxKite.Notifications.ToastDuration.Long;
toast.StrictValidation = false;
kiwidev / ExceptionWrappingSynchronizationContext.cs
Created Oct 26, 2012
SynchronizationContext that allows for catching and dealing with unhandled exceptions. Very useful in WinRT.
View ExceptionWrappingSynchronizationContext.cs
using System;
using System.Threading;
namespace TestExceptions
/// <summary>
/// Wrapper around a standard synchronization context, that catches any unhandled exceptions.
/// Acts as a facade passing calls to the original SynchronizationContext
/// </summary>
/// <example>
huseyint / comaprison.cs
Created Jun 15, 2011 — forked from jakcharlton/comaprison.cs
Property equality comparison on two objects
View comaprison.cs
// Shamelessly stolen and adapted from
public static class Comparisons
public static bool PublicInstancePropertiesEqual<T>(this T self, T to, params string[] ignore) where T : class
if (self != null && to != null)
var type = typeof(T);
foreach (var propertyName in type.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance).Select(pi => pi.Name).Except(ignore))
You can’t perform that action at this time.