Dependency Inversion Principle says do this:
class Foo
{
IBar bar;
public Foo(IBar bar) {
this.bar = bar;
}
PS>git init test | |
Initialized empty Git repository in C:/temp/test/.git/ | |
> | |
PS>cd test | |
> | |
PS>git commit --allow-empty -m test | |
[master (root-commit) 33f14f7] test | |
> |
# To start a demo between <start-ref> and <end-ref> (default = HEAD): | |
# git demo <start-ref> [<end-ref>] | |
# To step through commits toward <end-ref>: | |
# git next | |
[alias] | |
demo = !sh -c 'git update-ref DEMO_HEAD $(git rev-parse ${2-HEAD}) && git checkout -fq $1~0' - | |
next = !sh -c 'git checkout -fq $(git log ..DEMO_HEAD --pretty=format:"%H" | tail -n1)' - |
Conferences | |
=========== | |
Heartland Developer Conference in Omaha ~ September | |
Kansas City Developer Conf ~ June says Darin | |
St Louis Days of .NET ~ Nov (in two weeks, smart ass - thanks, seriously. you're the best) | |
Nebraska Code Camp ~ April (...) | |
Twin Cities Code Camp ~ April / October | |
Iowa Code Camp ~ "Spring" in summer (June last year, July this year), and Novemberish | |
That Conference ~ August (HIIIIIIGHLY recommended - Kalahari water park, BACON BAR) | |
Norweigian Developer Conference ~ June (a maz ing) |
open System; | |
open System.Diagnostics; | |
[<EntryPoint>] | |
let main argv = | |
let rec cc amount coins = | |
match (amount, coins) with | |
| (0,_) -> 1 | |
| (_,[]) -> 0 | |
| (amount,_) when amount < 0 -> 0 |
Dependency Inversion Principle says do this:
class Foo
{
IBar bar;
public Foo(IBar bar) {
this.bar = bar;
}
Keith Dahlby
@dahlbyk
[alias] | |
dt = difftool | |
mt = mergetool | |
[diff] | |
tool = bc3 | |
[difftool] | |
prompt = false | |
[difftool "bc3"] | |
cmd = \"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" | |
[difftool "p4"] |
$GitInstallDir = 'C:\Program Files (x86)\Git' | |
$Env:HOME = $Env:USERPROFILE | |
$Env:PLINK_PROTOCOL = 'ssh' | |
$Env:Path = "$GitInstallDir\bin;$GitInstallDir\mingw\bin;$Env:Path" | |
Set-Alias gitk "$GitInstallDir\cmd\gitk.cmd" | |
. C:\Dev\OSS\posh-git\profile.example.ps1 |
$svcName = Get-Service -DisplayName *cruise* | select -Exp Name | |
$svcKey = Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\$svcName | |
# Set 9th bit, from http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx | |
$newType = $svcKey.GetValue('Type') -bor 0x100 | |
Set-ItemProperty $svcKey.PSPath -Name Type -Value $newType |
static IObservable<string> CheckForFraud(IObservable<string> logins) | |
{ | |
return from g in logins.GroupByUntil(l => l, CheckForFraud) | |
from c in g.Count() | |
where c >= 3 | |
select g.Key; | |
} | |
static IObservable<Unit> CheckForFraud(IGroupedObservable<string, string> g) | |
{ |