Skip to content

Instantly share code, notes, and snippets.

View billyham's full-sized avatar

Dave Hanagan billyham

View GitHub Profile
@billyham
billyham / SPYBrigadeViewController.h
Last active March 3, 2016 10:01
Game Piece UICollectionView
#import <UIKit/UIKit.h>
#import "SPYArmyView.h"
@interface SPYBrigadeViewController : UICollectionViewController
@property (strong, nonatomic) NSNumber* numberOfArmies;
@property (strong, nonatomic) UIColor* brigadeColor;
@end
@billyham
billyham / SPYBrigadeViewLayout.h
Created March 3, 2016 09:56
Game Piece UICollectionViewLayout
#import <UIKit/UIKit.h>
@interface SPYBrigadeViewLayout : UICollectionViewLayout
@property int armies;
@property float gamePieceScale;
@property CGPoint introductionPoint;
-(id)init;
-(void)reAssesMaxColumnStack;
@billyham
billyham / SPYArmyView.h
Created March 3, 2016 10:04
Game Piece UIView (made using PaintCode)
#import <UIKit/UIKit.h>
@interface SPYArmyView : UIView
@property (strong, nonatomic) UIColor* baseColor;
@end
@billyham
billyham / batch.js
Last active September 6, 2016 18:49
batch.js with comments for documentation
// Copyright 2016
//
// Batch.js
//
// A Typical Useage:
// Parent creates a Batch object with or without 'sync'.
// Parent adds a job function to the queue stack.
// If no 'sync' and no current 'frame', a request will be made for an
// animation frame. It is assigned to the frame property.
// A global resource runs a requestAnimationFrame function to