Skip to content

Instantly share code, notes, and snippets.

View joelparsons's full-sized avatar
🍎
Edit Status

Joel Parsons joelparsons

🍎
Edit Status
View GitHub Profile

Keybase proof

I hereby claim:

  • I am joelparsons on github.
  • I am jackslash (https://keybase.io/jackslash) on keybase.
  • I have a public key whose fingerprint is 28E8 DB61 C7D0 5BE4 2024 3755 90CC F8FB 2239 BB37

To claim this, I am signing this object:

import SpriteKit
struct ActionTimingFunction {
private static let pi : Float = 3.14159
private static let pi2 : Float = pi / 2.0
static func linear (t : Float) -> Float{
return t
}
@joelparsons
joelparsons / NSCoder+subscript.h
Created July 29, 2012 00:36
Category on NSCoder to support the objective-c subscript syntax
//
// NSCoder+subscript.h
//
// Created by Joel Parsons on 29/07/2012.
// Copyright (c) 2012 All rights reserved.
//
//This category adds objective-c subscript support to NSCoder for basic object types
//handy for implementing NSCoding.
@joelparsons
joelparsons / gist:5666671
Last active December 17, 2015 20:19
Graph search algorithm implementation of searching for words on a boggle board in objective-c
#import <Foundation/Foundation.h>
@interface Node : NSObject
@property (nonatomic, strong) NSString * letter;
@property (nonatomic, strong) NSMutableSet * adjacentNodes;
@end
@implementation Node
-(NSMutableSet *)adjacentNodes{
if(_adjacentNodes){