This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*** | |
| InputCapture.ino | |
| Timer 1 high-resolution timing facility. | |
| Copyright (C) 2008-2012 Bill Roy | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Too many crusty old git branches? Run this to find likely candidates for deletion | |
| # It lists all the remote branches and sorts them by age. | |
| # | |
| # Folks at pivotal shared this with me | |
| # | |
| #$ . show-remote-branch-info.sh | |
| # 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class LINQExtensions | |
| { | |
| public static IEnumerable<IGrouping<TKey, TElement>> GroupAdjacentBy<TElement, TKey>(this IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey> comparer=null) | |
| { | |
| comparer = comparer ?? EqualityComparer<TKey>.Default; | |
| List<TElement> elements = null; | |
| TKey key = default(TKey); | |
| TKey lastKey = default(TKey); | |
| foreach (var x in source) | |
| { |
NewerOlder