Skip to content

Instantly share code, notes, and snippets.

@FilipDeVos
FilipDeVos / .gitignore
Created December 1, 2009 18:04 — forked from tobinharris/.gitignore
Standard .gitignore file & transform script for svn global-ignores
# .gitignore for .NET projects
# Thanks to Derick Bailey
# http://www.lostechies.com/blogs/derickbailey/archive/2009/05/18/a-net-c-developer-s-gitignore-file.aspx
# Additional Thanks to
# - Alexey Abramov
# Standard VS.NET and ReSharper Foo
obj
bin
*.csproj.user
@FilipDeVos
FilipDeVos / ListDiff.cs
Created September 6, 2012 07:21 — forked from praeclarum/ListDiff.cs
Computes a diff between two different IEnumerables. It's better than anything you have ever seen. Ever.
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.IO;
namespace TheBestAppEver
{
/// <summary>
/// The type of <see cref="ListDiffAction{S,D}"/>.

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

using System;
namespace MoneyTest
{
public static class Program
{
static void Main(string[] args)
{
var twentyEuro = new Money(20.0, Currency.EUR);