Skip to content

Instantly share code, notes, and snippets.

View abombss's full-sized avatar

Adam Tybor abombss

  • Accenture
  • Chicago, IL
View GitHub Profile
@gregoryyoung
gregoryyoung / ProbabilityKata
Created June 10, 2011 09:56
Greg Young's Probability Kata
Value objects are an important concept in DDD. This kata is made both to learn value objects and to learn better ways of testing.
Write a probability value object. It should contain the following methods:
Probability CombinedWith(Probability)
Probability InverseOf()
Probability Either(Probability)
if you forget your probability math:
Either:P(A) + P(B) - P(A)P(B)
CombinedWith: P(A)P(B)
/*
* UrlImageCache.java
*
* Copyright 2010, BuddyTV. All Rights Reserved
* Created 12/13/2010 Mike Markley
*/
package com.buddytv.android.utilities;
import android.graphics.drawable.Drawable;
package roboguice.astroboy;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import roboguice.inject.InjectView;
import java.util.List;
@phatboyg
phatboyg / .gitconfig
Created March 24, 2010 12:17
Git Config
[core]
autoCRLF = false
editor = c:/bin/git/npp.cmd
[diff]
tool = kd3
[merge]
tool = kd3
[difftool "kd3"]
cmd = c:/bin/git/kdiff3.cmd \"$LOCAL\" \"$REMOTE\"
[difftool]