Skip to content

Instantly share code, notes, and snippets.

View Stephanvs's full-sized avatar

Stephan van Stekelenburg Stephanvs

View GitHub Profile
@Stephanvs
Stephanvs / vs-code-settings.json
Created November 23, 2017 16:07
Visual Studio Code Settings
// Place your settings in this file to overwrite the default settings
{
// Editor
"editor.fontFamily": "'Fira Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.renderWhitespace": "all",
"editor.renderIndentGuides": true,
"editor.minimap.enabled": false,
@Stephanvs
Stephanvs / asynctestmethod.snippet
Last active May 18, 2017 07:06
Asynchronous Unit MSTest Code Snippet for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Async Test Method</Title>
<Shortcut>testa</Shortcut>
<Description>Code snippet for an async test method</Description>
@Stephanvs
Stephanvs / IAsyncEnumerableExtensions.cs
Created December 14, 2016 20:53
IAsyncEnumerableExtensions
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Common.Shared
{
using System;
using System.Collections;
using System.Collections.Generic;
@Stephanvs
Stephanvs / PublisherActor.cs
Created August 5, 2016 21:12 — forked from LarsKemmann/PublisherActor.cs
Service Fabric pub/sub using ActorEvents
public interface IPublisherEvents
{
void OnPublished(object value);
}
public interface IPublisher : IActor, IActorEventPublisher<IPublisherEvents>
{
Task PublishAsync(object value);
}
500: Block Helper 'extractResource' not found for expression 'extractResource resourceGroups'
TFS.WebApi.Exception: Block Helper 'extractResource' not found for expression 'extractResource resourceGroups'
at d (https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:135:393)
at https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:135:3268
at g (https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:135:653)
at https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:135:3201
at l (https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:34:8126)
at https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:34:8352
at t.when (https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMeXLDU4KHScOVXHg==:34:3784)
at t.u.promiseDispatch (https://cdn.vsassets.io/bundles/vss-bundle-common412355293-vi12yNBMe
Worker information
hostname: travis-worker-gce-org-prod-17:34cd70e1-ddf9-4dbc-8ffb-d577454c6669
version: v2.0.0-24-g8f5b41a https://github.com/travis-ci/worker/tree/8f5b41a07b602643e7ee8cf307787f9ca8f4b00b
instance: testing-gce-52b9c362-5830-4d9a-b2a2-cc4fcb592a34:travis-ci-mega-trusty-1445287562
startup: 22.425535044s
Build system information
Build language: ruby
Build group: stable
Build dist: trusty
Build image provisioning date and time
using System;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using Cirrious.CrossCore;
using Cirrious.MvvmCross.ViewModels;
@Stephanvs
Stephanvs / stacktrace.txt
Created October 10, 2015 21:26
GitHub Extension Exception in Visual Studio 2015 Enterprise SP1 CTP
Microsoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part "GitHub.VisualStudio.TeamExplorer.Home.GitHubHomeSection". ---> System.Exception: The component 'GitHub.VisualStudio.UI.Views.GitHubHomeContent' does not have a resource identified by the URI '/GitHub.VisualStudio;component/ui/views/githubhomecontent.xaml'.
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at GitHub.VisualStudio.UI.Views.GitHubHomeContent.InitializeComponent() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.VisualStudio\UI\Views\GitHubHomeContent.xaml:line 1
at GitHub.VisualStudio.UI.Views.GitHubHomeContent..ctor() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.VisualStudio\UI\Views\GitHubHomeContent.xaml.cs:line 15
at GitHub.VisualStudio.TeamExplorer.Home.GitHubHomeSection..ctor(ISimpleApiClientFactory apiFactory, ITeamExplorerServiceHolder holder) in Y:\jenkins\workspac
#!/bin/bash
# VERSION=1
git status 2&> /dev/null
if [ "$?" != "0" ]; then
# echo "repo found"
# else
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software