This file contains hidden or 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 usage_description = "Usage: node create_changelog.js MyChangelog.txt \"Changelog for nightly build version 0.9.0.1\""; | |
var args = ParseArguments(); | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var prc = spawn('git', ['describe', '--tags', '--abbrev=0']); | |
prc.stdout.setEncoding('utf8'); | |
prc.stdout.on('data', function (data) { | |
var str = data.toString(); | |
var lines = str.split(/(\r?\n)/g); |
This file contains hidden or 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.Reactive.Concurrency; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading.Tasks; | |
using FluentAssertions; | |
using NUnit.Framework; | |
namespace Tests | |
{ |
This file contains hidden or 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 ImplicitConversionTest | |
{ | |
public class A | |
{ | |
public string Member { get; set; } | |
public static implicit operator string(A self) | |
{ | |
return self.Member; | |
} |
This file contains hidden or 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 NUnit.Framework; | |
namespace Spikes | |
{ | |
public class Foo | |
{ | |
public Foo(string name) | |
{ | |
Name = name; | |
} |
This file contains hidden or 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
#include <iostream> | |
#include <map> | |
#include <algorithm> | |
#include <functional> | |
#include <memory> | |
using namespace std; | |
using namespace std::placeholders; | |
class receiver |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include "boost/date_time/local_time/local_time.hpp" | |
#include "boost/date_time/c_local_time_adjustor.hpp" | |
boost::posix_time::time_duration get_utc_offset(const boost::posix_time::ptime& time_stamp) | |
{ | |
using boost::posix_time::ptime; | |
const ptime local_time = boost::date_time::c_local_adjustor<ptime>::utc_to_local(time_stamp); | |
return local_time - time_stamp; |
This file contains hidden or 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 RxPlayground | |
{ | |
public static class MyReactiveExtensions | |
{ | |
public static IObservable<T> ToCancellable<T>(this IObservable<T> source, CancellationToken cancellationToken) | |
{ | |
var obj = new ThrowWhenCancelled<T>(source); | |
cancellationToken.Register(obj.Cancel); | |
return obj.ToObservable(); | |
} |
This file contains hidden or 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 WorkerCancellationTests | |
{ | |
[Test] | |
public async Task When_running_async_then_result_should_be_true() | |
{ | |
var worker = new Worker(); | |
var result = await worker.DoAsync(100.Milliseconds()); | |
result.Should().BeTrue(); | |
} |
This file contains hidden or 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.ComponentModel; | |
using System.Diagnostics; | |
using System.Linq.Expressions; | |
namespace Playground { | |
// Notice the 3 occurrencies of the Title identifier and the abscence of additional backing fields! | |
public class ExampleViewModel : ViewModelBase { | |
public string Title { |
This file contains hidden or 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
namespace VisitorTests | |
{ | |
public interface INt | |
{ | |
} | |
public interface INtel | |
{ | |
} |