Skip to content

Instantly share code, notes, and snippets.

// This is a .NET 3.5 console app, compiled with the C# 6 compiler from CTP6
using System;
namespace System.Runtime.CompilerServices
{
public class FormattableStringFactory
{
public static FormattableString Create(string messageFormat, params object[] args)
{
return new FormattableString(messageFormat, args);
@jmorrill
jmorrill / gist:4d21bdfbea6b7ad4d6b2
Created November 7, 2014 00:39
C++ libuv library
/* OUTPUT
tick tock
I'm the second handler of the tick event
I'm on the dispatcher thread
I'm on a thread pool thread
I just got value 42 sent to me and I'm on the dispatcher loop thread
I'm on a thread pool thread and shutting down dispatcher safely
exiting...