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
// | |
// CJCAnonymousFacesFilter.h | |
// CJC.FaceMaskingDemo | |
// | |
// Created by Chris Cavanagh on 11/9/13. | |
// Copyright (c) 2013 Chris Cavanagh. All rights reserved. | |
// | |
#import <CoreImage/CoreImage.h> |
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
// | |
// AvlNode.h | |
// AVL tree / Node | |
// | |
// Created by Chris Cavanagh on 1/14/14. | |
// | |
#import <Foundation/Foundation.h> | |
typedef int (^EqualityComparer)( id v1, id v2 ); |
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
// | |
// ImmutableArray.h | |
// AVLTree | |
// | |
// Created by Chris Cavanagh on 1/17/14. | |
// | |
#import <Foundation/Foundation.h> | |
@interface ImmutableArray : NSObject |
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
void Main() | |
{ | |
var writeChanges = false; | |
var basePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Util.CurrentQueryPath), @"..\..")); | |
UpdateVersions(basePath, writeChanges); | |
} | |
void UpdateVersions(string basePath, bool writeChanges = false) | |
{ |
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
// LINQPad script showing a "use" for out parameters on iterators. | |
// It's a mockup of a discrete event simulator process (similar to SimPy - http://simpy.readthedocs.io). | |
// Since it's not possible to use 'out' with iterators, this uses an Action<T> instead. | |
// I'm not suggesting it's valid or in good taste :) | |
void Main() | |
{ | |
foreach (var ie in Simulate().Take(100)) ie.Dump(); | |
} |