This file contains 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
// see https://gist.github.com/mausch/2ef2e9b26a89d7594e3d | |
public struct ValueOrException<TValue> | |
{ | |
public ValueOrException(TValue value, Exception exception) | |
{ | |
_value = value; | |
_exception = exception; | |
} |
This file contains 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
using System; | |
using System.Drawing; | |
using MonoTouch.CoreGraphics; | |
/// https://gist.github.com/mayoff/4146780 | |
static class ArrowPath | |
{ | |
public static CGPath pathWithArrowFromPoint( | |
PointF startPoint, |
This file contains 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/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete. | |
# Example: git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then |
This file contains 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 interface ISet<ItemT> | |
{ | |
void Add(ItemT item); | |
void Remove(ItemT item); | |
bool Contains(ItemT item); | |
IEnumerable<ItemT> Items { get; } | |
int Count { get; } | |
} |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using MonoTouch.UIKit; | |
using MonoTouch.AssetsLibrary; | |
using MonoTouch.Foundation; | |
namespace LookHere.Exporting |
This file contains 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
using System.Diagnostics; | |
using Windows.System; | |
namespace Toolbox.WinRT | |
{ | |
enum VKeyClass | |
{ | |
Control, // 0-31, 33-47, 91-95, 144-165 | |
Character, // 32, 48-90 | |
NumPad, // 96-111 |
NewerOlder