Skip to content

Instantly share code, notes, and snippets.

🍸
retired

Dmitri Nesteruk nesteruk

🍸
retired
  • Mesa Funds
Block or report user

Report or block nesteruk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FourTwosProblem.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
namespace PatternDemoCore
View DeclarativeEventSubscriptions
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Autofac;
namespace DotNetDesignPatternDemos.Behavioral.Observer.ContainerWireup
{
public interface IEvent {}
View SoACompositeProxy
using System.Collections;
using System.Collections.Generic;
namespace DotNetDesignPatternDemos.Structural.Proxy
{
class Creature
{
public byte Age;
public int X, Y;
}
View CompositeProxy
using System;
using System.Linq;
namespace DotNetDesignPatternDemos.Structural.Proxy.Composite
{
// todo: publish
public class MasonrySettings
{
//public bool? All
//{
View gist:a8c2abbe39b000bdaf2db8f0bc68a056
using System;
using System.Diagnostics;
namespace DotNetDesignPatternDemos.Structural.Proxy.ValueProxy
{
[DebuggerDisplay("{value*100.0f}%")]
public struct Percentage
{
private readonly float value;
View RecursiveGenericMagic
using System;
using System.Linq;
namespace DotNetDesignPatternDemos.Structural.Adapter
{
// Vector2f, Vector3i
public interface IInteger
{
int Value { get; }
View FluentInterfaceHierarchy
using System;
using System.Collections.Generic;
using System.Threading;
namespace DesignPatterns
{
public class Person
{
public string Name;
View MediatorExercise.swift
import Foundation
import XCTest
public protocol Disposable
{
func dispose()
}
protocol Invocable : class
{
@nesteruk
nesteruk / SwiftSubsequenceMindfuck.swift
Created Aug 4, 2017
Swift sequence-of-sequences mindfindfuck
View SwiftSubsequenceMindfuck.swift
import Foundation
import XCTest
class SingleValue : Sequence
{
var value = 0
init() {}
init(_ value: Int)
{
@nesteruk
nesteruk / BuilderFacets.rs
Created Jul 24, 2017
Fluent builder with lifetime/references removed... doesn't compile.
View BuilderFacets.rs
use std::marker::PhantomData;
use std::rc::Rc;
use std::fmt::Display;
struct Person
{
street_address: String,
postcode: String,
city: String,
You can’t perform that action at this time.