Skip to content

Instantly share code, notes, and snippets.

View gist:102774
[DataContract(Namespace = "", Name = "user")]
public class User
{
[DataMember(Name = "id")]
public int Id { get; set; }
[DataMember(Name = "screen_name")]
public string ScreenName { get; set; }
[DataMember(Name = "name")]
View gist:491269
private static void CurrentlyInViewChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
{
var ic = (ItemsControl) dependencyObject;
var newValue = e.NewValue;
if (ic.IsLoaded)
{
BringIntoView(ic, newValue);
}
else
View gist:494236
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler,
TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<unitTestProvider name="MsTest" />
View gist:539883
git clone http://github.com/techtalk/SpecFlow.git
Initialized empty Git repository in D:/mydocs/src/SpecFlow/.git/
got ae5ddb97daf6ab10aac5cb2c2b0091dc718c220e
got ac48a53137ccf88f9bdd2344368fe7dbbea63c6f
walk ac48a53137ccf88f9bdd2344368fe7dbbea63c6f
walk ae5ddb97daf6ab10aac5cb2c2b0091dc718c220e
got 40ff047f94dfecceae5f4014d32b1843de8e5f87
walk 40ff047f94dfecceae5f4014d32b1843de8e5f87
got cc14dc02d4c7b856ebe9dee883852b52f0c414f3
got 32b12d4009a5b7f0624cce9c8c01f1f5410e9aa9
View gist:770761
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public struct TheStruct
View gist:770766
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public struct TheStruct
View gist:770773
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public unsafe struct TheStruct
@ArildF
ArildF / gist:788775
Created Jan 20, 2011
WF4 async activity
View gist:788775
using System;
using System.Activities;
namespace WorkflowConsoleApplication1
{
public class AsyncActivity : AsyncCodeActivity
{
public InArgument<int> ActivityNumber { get; set; }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state)
View gist:808598
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Markup;
using Rogue.Ptb.UI.Commands;
namespace Rogue.Ptb.UI.MarkupExtensions
{
[MarkupExtensionReturnType(typeof(ICommand))]
public class ResolveCommandExtension : MarkupExtension
@ArildF
ArildF / gist:911288
Created Apr 9, 2011
Replace calls with tail calls using Mono.Cecil
View gist:911288
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace TailCalls
{
class Program