Skip to content

Instantly share code, notes, and snippets.

"D039LL9"
""
""
"| ***R1*** "
"| "
"| ***Z1*** rise "
"|------------| "
" |0---------->|"
" ***I1*** ***DR*** "
"END"
@gulbanana
gulbanana / buildlog.txt
Created December 16, 2016 11:53
msbuild log
This file has been truncated, but you can view the full file.
Microsoft (R) Build Engine version 15.1.458.808
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\MSBuild.dll.exe /Logger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\dotnet.dll /m /t:Build /v:m /verbosity:diag .\netcoretest.csproj
Build started 16/12/2016 7:41:20 PM.
Environment at start of build:
ConEmuConfig =
PLINK_PROTOCOL = ssh
DISPLAY = needs-to-be-defined
CscToolExe = C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\RunCsc.cmd
@gulbanana
gulbanana / SuggestionBox.cs
Created August 25, 2016 07:18
SuggestionBox control
public class SuggestionBox : Control
{
static SuggestionBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(SuggestionBox), new FrameworkPropertyMetadata(typeof(SuggestionBox))); }
public static DependencyProperty SelectedItemProperty =
DependencyProperty.Register("SelectedItem", typeof(string), typeof(SuggestionBox), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, (d, bv) => (d as SuggestionBox).OnSelectedItemChanged()));
public string SelectedItem
{
get { return (string)GetValue(SelectedItemProperty); }
using System;
using System.Dynamic;
class LookImUsingRuby
{
static void Main(string[] args)
{
var x = new { Foo = 1, Bar = "data" }; // anonymous object!
Console.WriteLine(x.Foo); // this is type-checked because within this method, we know Foo exists
using System;
class A
{
public string ToUpper() => "A";
}
class Program
{
static void Main(string[] args)
@gulbanana
gulbanana / Program.cs
Last active August 10, 2016 02:19
pr15
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplicationList
{
class Program
{
static IEnumerable<long> BuildLatticeRow(int size)
{
using System;
interface IFoo
{
void Do();
}
class A : IFoo
{
public void Do() {}
}
using System;
class A {}
class B : A {}
class Badarray
{
static void Main(string[] args)
{
var x = new A[2];
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Euler
{
static void Main(string[] args) => Console.WriteLine(
File.ReadAllText("./p022_names.txt")
.Replace("\"", "")
using System;
using System.IO;
using System.Linq;
class Euler
{
static void Main(string[] args) => Console.WriteLine(
File.ReadAllText("./p022_names.txt")
.Replace("\"", "")
.Split(',')