View Dockerfile
FROM node:9.2.0-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
View MinMax.cs
static (int min, int max) MinMax(IEnumerable<int> source)
{
using (var iterator = source.GetEnumerator())
{
if (!iterator.MoveNext())
{
throw new InvalidOperationException("Cannot find min/max of an empty sequence");
}
int min = iterator.Current;
int max = iterator.Current;
View Issue.cs
[Fact]
public void ProfileAndChild_DifferentHandlingOfSingleton()
{
var container = new Container(c =>
{
c.For<I>().Use<C>().Singleton();
c.For<IFoo>().Use<Foo>().Singleton();
c.Profile("a", p =>
{
View quotes.json
{
"quotes": [
"Yeah, piece of cake!",
"I should have known those alien maggots booby-trapped this sub.",
"It's time to abort your whole freaking species!",
"My name's Duke Nukem.",
"It's time to kick ass and chew bubble gum, and I'm all outta gum!",
"I'm Duke Nukem, and I'm coming to get the rest of you alien bastards!",
"Nobody steals our chicks... and lives!",
"We meet again, Doctor Jones.",
View Program01.cs
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
}
View Program.cs
using Serilog;
using System;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
var log = new LoggerConfiguration()
View xUnit.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>xUnit Fact</Title>
<Author>Philippe Vlérick</Author>
<Description>xUnit Unit Test - Fact.</Description>
<Shortcut>fact</Shortcut>
</Header>
<Snippet>
View Nuget update.txt
C:\Users\Phil\Documents\GitHub\Roslyn [issue-5094]> .\nuget.exe restore .\Roslyn.sln
Restoring packages for C:\Users\Phil\Documents\GitHub\Roslyn\src\Compilers\Core\CodeAnalysisTest\CodeAnalysisTest.csproj...
Restoring packages for .NETFramework,Version=v4.5...
All packages are compatible with .NETFramework,Version=v4.5.
Restoring packages for C:\Users\Phil\Documents\GitHub\Roslyn\src\Compilers\Core\Portable\CodeAnalysis.csproj...
Restoring packages for .NETPortable,Version=v4.5,Profile=Profile7...
All packages are compatible with .NETPortable,Version=v4.5,Profile=Profile7.
Restoring packages for C:\Users\Phil\Documents\GitHub\Roslyn\src\Compilers\Core\VBCSCompiler\VBCSCompiler.csproj...
Restoring packages for .NETFramework,Version=v4.5...
Restoring packages for .NETFramework,Version=v4.5 (win-anycpu)...