Skip to content

Instantly share code, notes, and snippets.

View agross's full-sized avatar
🔪
Sharpening the saw

Alexander Groß agross

🔪
Sharpening the saw
View GitHub Profile
agross <agross@8ed4a44c-bfb4-4748-a28a-fad9255c4788>: 565 commits with 338045 lines of diff
dvetter <dvetter@8ed4a44c-bfb4-4748-a28a-fad9255c4788>: 83 commits with 36614 lines of diff
cruebner <cruebner@8ed4a44c-bfb4-4748-a28a-fad9255c4788>: 65 commits with 7455 lines of diff
ctrautwein <ctrautwein@8ed4a44c-bfb4-4748-a28a-fad9255c4788>: 9 commits with 123 lines of diff
#!/usr/bin/env ruby
## git-rank-contributors: a simple script to trace through the logs and
## rank contributors by the total size of the diffs they're responsible for.
## A change counts twice as much as a plain addition or deletion.
##
## Output may or may not be suitable for inclusion in a CREDITS file.
## Probably not without some editing, because people often commit from more
## than one address.
##
public class DeathCaseCreatedSyncListener : IPostInsertEventListener
{
readonly IContributeDeathCaseDetails[] _properties;
readonly ISyncService _syncService;
public DeathCaseCreatedSyncListener(ISyncService syncService,
IContributeDeathCaseDetails[] properties)
{
_syncService = syncService;
_properties = properties;
#!/bin/bash
# Tools required:
# http://github.com/rtomayko/git-sh
# http://git-wt-commit.rubyforge.org/
#
# Aliases in .gitconfig, git builtins ("status", for example) are auto-aliased by git-sh:
# st = status
# co = checkout
# ci = commit
var maybeNick = NicknamesToEmail
.Where(x => x.Nickname == fullNameOrEmail)
.Select(x => x.Email)
.ToMaybe();
var maybeName = FullNamesToEmail
.Where(x => x.FullName == fullNameOrEmail)
.Select(x => x.Email)
.ToMaybe();
using Castle.MicroKernel.Facilities;
namespace Crimson.Infrastructure.Container
{
public class ArrayDependencyFacility : AbstractFacility
{
protected override void Init()
{
Kernel.Resolver.AddSubResolver(new ArraySubDependencyResolver(Kernel));
}
public class EmailPreferencesLookup
{
public IEnumerable<NicknameToEmail> NicknamesToEmail { get; set; }
public IEnumerable<FullNameToEmail> FullNamesToEmail { get; set; }
public IEnumerable<EmailToEmailPreferences> EmailToPreferences { get; set; }
public Maybe<EmailPreferences> GetPreferencesFor(string fullNameOrEmail)
{
var maybeNick = NicknamesToEmail.TryFind(
x => x.Nickname == fullNameOrEmail,
namespace Sample
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using CsharpMonads;
public class ExpensiveOperation
@rem Apply patch from outside the repository directory
git apply ../0001-patch.patch
@rem Call build script
call build.cmd
set el=%errorlevel%
@rem Clean up
git reset --hard
git clean -d -f
'$Id$
'QuoteFix Macro TRUNK
'QuoteFix Macro is part of the macros4outlook project
'see http://sourceforge.net/projects/macros4outlook/ for more information
'
'For more information on Outlook see http://www.microsoft.com/outlook
'Outlook is (C) by Microsoft
'If you like this software, please write a post card to