Skip to content

Instantly share code, notes, and snippets.

View alistair's full-sized avatar

Alistair Bush alistair

  • Auckland, New Zealand
View GitHub Profile
@alistair
alistair / keybase.md
Created February 6, 2016 01:54
keybase.md

Keybase proof

I hereby claim:

  • I am alistair on github.
  • I am alistair_nz (https://keybase.io/alistair_nz) on keybase.
  • I have a public key whose fingerprint is BDEE 72A5 CF84 4C25 FB2A F9C3 B2E2 9462 7554 2EFD

To claim this, I am signing this object:

@alistair
alistair / yield.js
Last active October 15, 2016 04:17
Composable computation descriptions.
/*
* This is a demonstration of a common programming patterns and how the
* flow control abilities of async/await ( or yield in javascript )
* support turning nested code into, beautiful functional code.
*
* What I am demonstrating here is not simple and using javascript to
* explain this has some pros but also cons.
* So please if you fail to understand don't be discouraged.
* That is a failing on my part not yours.
*
{"Type":"request", "Seq": 11, "Command":"/v2/debugtestsinclass/getstartinfo", "Arguments": { "FileName":"/home/alistair/projects/TestProject/UnitTest1.cs", "MethodNames": ["TestProject.UnitTest1.Test1"], "TestFrameworkName": "xunit", "TargetFrameworkVersion": ".NETCoreApp, Version=2.0" }}
{"Type":"request", "Seq": 11, "Command":"/currentfilemembersastree", "Arguments": { "FileName":"/home/alistair/projects/TestProject/UnitTest1.cs"}}
{"Type":"request", "Seq": 11, "Command":"/v2/debugtestsinclass/getstartinfo", "Arguments": { "FileName":"/home/alistair/projects/TestProject/UnitTest1.cs", "MethodNames": ["TestProject.UnitTest.Test1"], "TestFrameworkName": "xunit", "TargetFrameworkVersion": ".NETCoreApp, Version=2.0" }}
/usr/share/dotnet/dotnet exec --runtimeconfig "/home/alistair/projects/TestProject/bin/Debug/netcoreapp2.1/TestProject.runtimeconfig.json" --depsfile "/home/alistair/projects/TestProject/bin/Debug/netcoreapp2.1/TestProject.deps.json" "/home/alistair/.nuget/packages/microsoft.testplatform.test