View fastlinkedlist.cs
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
public class FastLinkedList<T> | |
{ | |
private Node Head; | |
public void Add(T value) | |
{ | |
var node = new Node(); | |
node.Value = value; | |
while (true) |
View NowinServerFactory.cs
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.Net; | |
using System.Threading.Tasks; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Hosting.Server; | |
using Microsoft.AspNet.Owin; | |
using Microsoft.Framework.ConfigurationModel; | |
namespace Nowin.vNext |
View FsharpLoader.cs
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.Linq; | |
using System.Diagnostics; | |
using System.Reflection; | |
using System.Runtime.Versioning; | |
using System.Text; | |
using Microsoft.Framework.Runtime; | |
using System.IO; | |
using NuGet; |
View AzureStreamingLoggerProvider.cs
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
public class AzureStreamingLoggerProvider : ILoggerProvider | |
{ | |
public ILogger Create(string name) | |
{ | |
return new AzureLogger(name); | |
} | |
private class AzureLogger : ILogger | |
{ | |
private readonly string _name; |
View inferme.cs
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
public static class MyClass | |
{ | |
public static void DoSomething<T>(Func<int, T, int> call) | |
{ | |
} | |
public static void Example() | |
{ | |
// This fails |
View gist:2bf1c256e084ed2f9863
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
Warning: FindPackagesById: System.Runtime.Handles | |
Error getting response stream (ReadDone1): ReceiveFailure | |
GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Handles'. | |
Warning: FindPackagesById: System.Diagnostics.Process | |
Error getting response stream (ReadDone1): ReceiveFailure | |
GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Process '. | |
Warning: FindPackagesById: System.Reflection.Primitives | |
Error getting response stream (ReadDone1): ReceiveFailure | |
GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Primitiv es'. | |
Warning: FindPackagesById: System.IO.FileSystem.Primitives |
View 0_reuse_code.js
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View gist:0fc85f3215adf4eab294
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
public class Program | |
{ | |
public void Main() | |
{ | |
var solution = new Directory | |
{ | |
["global.json"] = new JObject | |
{ | |
["projects"] = new JArray { "src", "test" } | |
}, |
View UseMapMiddleware.cs
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.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Http; | |
namespace WebApplication58 | |
{ | |
public class MapUseMiddleware |
View loadcontextredux.txt
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
A (project) -> B (package) | |
(build)-> CustomCompiler (project) (build)-> FSharpCompiler (project) -> System.Runtime (package) | |
public interface ILoadContextProvider { | |
IAssemblyLoadContext GetLoadContext(Project project, FrameworkName targetFramework); | |
} | |
var loadContextProvider = ... | |
Compile(A) |
OlderNewer