Skip to content

Instantly share code, notes, and snippets.

View Uli-Armbruster's full-sized avatar

Uli Armbruster Uli-Armbruster

View GitHub Profile
@Uli-Armbruster
Uli-Armbruster / CastleWindsor.CollectionResolver.cs
Last active October 8, 2015 14:46
Open Closed Principle with Castle.Windsor Collection Resolver
public class Installer : IWindsorInstaller
{
/// <summary>
/// Performs the installation in the <see cref="T:Castle.Windsor.IWindsorContainer" />.
/// </summary>
/// <param name="container">The container.</param>
/// <param name="store">The configuration store.</param>
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Kernel.Resolver.AddSubResolver(new Castle.MicroKernel.Resolvers.SpecializedResolvers.CollectionResolver(container.Kernel));
@Uli-Armbruster
Uli-Armbruster / youtrack.rb
Created January 25, 2016 23:40
Our rake file for automating release notes.
require 'youtrack'
require 'ostruct'
module Build
class YouTrack
class View
attr_reader :issues, :by_department, :by_relevance
def initialize(issues)
@issues = issues

Keybase proof

I hereby claim:

  • I am Uli-Armbruster on github.
  • I am uliarmbruster (https://keybase.io/uliarmbruster) on keybase.
  • I have a public key whose fingerprint is 0499 876F C0A7 E453 1FE8 A247 8A6E 0256 85B3 DABD

To claim this, I am signing this object:

Blog Post

GIT_EDITOR=true git rebase -i --root -x 'git diff --name-only HEAD~1..HEAD;git show --oneline --no-patch; printf "Return for next commit"; read;clear'

var totalTimeout = Observable
.Throw<TimeoutException>(new TimeoutException("my own text"))
.DelaySubscription(TimeSpan.FromSeconds(10));
var processStepTimeout = Observable
.FromEventPattern(btn_nextStep, nameof(btn_nextStep.Click))
.Timeout(TimeSpan.FromSeconds(3));
var sub = totalTimeout.Amb(processStepTimeout).Subscribe(ex => {}, ex => MessageBox.Show(ex.Message));