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
open System.Linq | |
let a = [0; 5; 10] | |
let b = [0 .. 10] | |
// enumerates left and yields element pairs combined by consuming right until 'consume' is false or either sequence is exhausted | |
let condZip (left:seq<'a>) (right:seq<'b>) consume project = | |
seq { | |
use en = right.GetEnumerator() | |
let hadNext = ref(en.MoveNext()) |
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
#!/bin/bash | |
# | |
# testflightapp.com tokens | |
API_TOKEN="YOUR_API_TOKEN" | |
TEAM_TOKEN="YOUR_TEAM_TOKEN" | |
PRODUCT_NAME="RowMotion" | |
ARTEFACTS="$PWD/Artefacts" |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace MethodStaticLocals | |
{ | |
class ExpensiveObject |
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
// | |
// TeamCityAdadpter.m | |
// Created by Johannes Rudolph on 27.05.11. | |
// Use of this source code is governed by the following license: | |
// | |
// Redistribution and use in source and binary forms, with or without modification, | |
// are permitted provided that the following conditions are met: | |
// | |
// (1) Redistributions of source code must retain the above copyright notice, |
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
class Vehicle {} | |
class Car extends Vehicle {} | |
class Porsche extends Car {} | |
public void foo(List<? extends Car> extendsCar , List<? super Car> superOfCar, List<Car> cars) { | |
Vehicle V = new Vehicle(); | |
Car C = new Car(); | |
Porsche P = new Porsche(); | |
// [] specifies the range of valid types for ? |
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
var spec = from sut in SpecificationExpression.Begin(() => new Stack<int>()) | |
where sut.Push(element) | |
select new Observations() | |
{ | |
() => Assert.NotEmpty(sut), | |
() => Assert.Equal(element, sut.Peek()) | |
}; |
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
using System; | |
using Library; | |
using System.Reflection; | |
using System.Runtime.Remoting.Proxies; | |
using System.Runtime.Remoting.Services; | |
using System.Runtime.Remoting.Messaging; | |
using System.Runtime.Remoting.Activation; | |
namespace Library | |
{ |
NewerOlder