Skip to content

Instantly share code, notes, and snippets.

@jasonyandell
jasonyandell / chocolatey-env-setup.ps1
Created June 21, 2017 22:52 — forked from amogram/chocolatey-env-setup.ps1
A Chocolatey script for PowerShell I use to set up my Windows development environment. I use this when setting up my own Dev VMs. Use at your own risk.See http://bit.ly/1a301JK and http://chocolatey.org/ for more information.
# 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
@jasonyandell
jasonyandell / gist:3351460
Created August 14, 2012 18:22
Code of Disapproval (ಠ_ಠ)
<!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;
@jasonyandell
jasonyandell / gist:2890301
Created June 7, 2012 17:45 — forked from jyandell1/gist:2886363
"Real" stats terms (e.g. μ, σ) in F#??
// 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()
@jasonyandell
jasonyandell / gist:2209041
Created March 26, 2012 19:36
Round Robin test
[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);
@jasonyandell
jasonyandell / gist:2051176
Created March 16, 2012 17:07
Saga state machine definition (Chris Patterson)
public class DrinkPreprationStateMachine :
StateMachine < DrinkPreprationStateMachine >,
ISaga,
InitiatedBy < NewOrderMessage >,
Orchestrates < PaymentCompleteMessage >,
Orchestrates < DrinkPreparedMessage >
{
static DrinkPreprationStateMachine()
{
Define(() => {
@jasonyandell
jasonyandell / gist:2051167
Created March 16, 2012 17:06
Saga state machine definition (Chris Patterson)
public class DrinkPreprationStateMachine :
StateMachine < DrinkPreprationStateMachine >,
ISaga,
InitiatedBy < NewOrderMessage >,
Orchestrates < PaymentCompleteMessage >,
Orchestrates < DrinkPreparedMessage >
{
static DrinkPreprationStateMachine()
{
Define(() =>