Skip to content

Instantly share code, notes, and snippets.

private static IEnumerator<ITask> ProcessRequest(string url) {
}
//Copyright (C) Microsoft Corporation. All rights reserved.
// Updated by Ido Ran (ido.ran@gmail.com)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
<UserControl x:Class="MultiRangeSlider.MultiRangeSliderControl"
x:Name="root"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
MinWidth="50">
<UserControl.Resources>
<ControlTemplate x:Key="StripedSlider" TargetType="{x:Type Slider}">
<Border SnapsToDevicePixels="true"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
kjhkjh
sdfdsf
@ido-ran
ido-ran / gist:1616572
Created January 15, 2012 17:51
GoWPF 1.3.1.4 Drag and Drop Issue
/* Copyright © Northwoods Software Corporation, 2008-2011. All Rights Reserved. */
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Xml.Linq;
using Northwoods.GoXam;
@ido-ran
ido-ran / ProfiledRazorViewEngine.cs
Last active December 17, 2015 21:39
Profiler for Razor View Engine using MiniProfiler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using StackExchange.Profiling;
namespace MiniProfiler.Razor {
public class ProfiledRazorViewEngine : RazorViewEngine {

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!