This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DrinkPreprationStateMachine : | |
StateMachine < DrinkPreprationStateMachine >, | |
ISaga, | |
InitiatedBy < NewOrderMessage >, | |
Orchestrates < PaymentCompleteMessage >, | |
Orchestrates < DrinkPreparedMessage > | |
{ | |
static DrinkPreprationStateMachine() | |
{ | |
Define(() => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DrinkPreprationStateMachine : | |
StateMachine < DrinkPreprationStateMachine >, | |
ISaga, | |
InitiatedBy < NewOrderMessage >, | |
Orchestrates < PaymentCompleteMessage >, | |
Orchestrates < DrinkPreparedMessage > | |
{ | |
static DrinkPreprationStateMachine() | |
{ | |
Define(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void RoundRobinWorks() | |
{ | |
var busA = ServiceLocator.Current.GetInstance<ITransientBus>(); | |
var busB = ServiceLocator.Current.GetInstance<ITransientBus>(); | |
Assert.AreNotEqual(busA, busB); | |
var evtA = new ManualResetEvent(false); | |
var evtB = new ManualResetEvent(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from http://blog.codebeside.org/post/2011/10/27/F-as-a-OctaveMatlab-replacement-for-Machine-Learning.aspx | |
let featureNormalize (X: #Matrix<float>) = | |
let μ = | |
X.ColumnEnumerator() | |
|> Seq.map (fun (j, col) -> col.Mean()) | |
|> DenseVector.ofSeq | |
let σ = | |
X.ColumnEnumerator() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>The Code Of Disapproval (ಠ_ಠ)</title> | |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.22/themes/base/jquery-ui.css" type="text/css" media="all" /> | |
<style type="text/css"> | |
#draggable | |
{ | |
width: 150px; | |
height: 150px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple environment setup script | |
# Install Applications | |
choco install fiddler4 | |
choco install notepadplusplus | |
choco install visualstudiocode | |
choco install greenshot | |
choco install GoogleChrome | |
choco install putty | |
choco install ccleaner |