Skip to content

Instantly share code, notes, and snippets.

View urbanfly's full-sized avatar

Robert Taylor urbanfly

  • Wolters Kluwer
  • Georgia
View GitHub Profile
@urbanfly
urbanfly / gist:51631ac39bf97f6e2331
Last active August 29, 2015 14:25
Chess TDD Move refactor
// https://github.com/erikdietrich/ChessTDD/blob/master/Chess/Piece.cs
using System.IO;
using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
| A B C D E
------------
1| - w w w w
2| h
3| h
4| h
5| h
@urbanfly
urbanfly / gist:11154132
Created April 21, 2014 19:45
RX-Window
using System;
using System.Reactive.Linq;
public class Test
{
public static void Main()
{
var source = Observable.Interval(TimeSpan.FromSeconds(.25))
.Select(x => x % 10 < 5 ? "A" : "B")
.Take(20)