Skip to content

Instantly share code, notes, and snippets.

Dave Hanagan billyham

View GitHub Profile
billyham / batch.js
Last active Sep 6, 2016
batch.js with comments for documentation
View batch.js
// 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
billyham / SPYArmyView.h
Created Mar 3, 2016
Game Piece UIView (made using PaintCode)
View SPYArmyView.h
#import <UIKit/UIKit.h>
@interface SPYArmyView : UIView
@property (strong, nonatomic) UIColor* baseColor;
billyham / SPYBrigadeViewLayout.h
Created Mar 3, 2016
Game Piece UICollectionViewLayout
View SPYBrigadeViewLayout.h
#import <UIKit/UIKit.h>
@interface SPYBrigadeViewLayout : UICollectionViewLayout
@property int armies;
@property float gamePieceScale;
@property CGPoint introductionPoint;
billyham / SPYBrigadeViewController.h
Last active Mar 3, 2016
Game Piece UICollectionView
View SPYBrigadeViewController.h
#import <UIKit/UIKit.h>
#import "SPYArmyView.h"
@interface SPYBrigadeViewController : UICollectionViewController
@property (strong, nonatomic) NSNumber* numberOfArmies;
@property (strong, nonatomic) UIColor* brigadeColor;
You can’t perform that action at this time.