Skip to content

Instantly share code, notes, and snippets.

View Sprite Kit Easing Curves
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
}
View keybase.md

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:

@joelparsons
joelparsons / gist:5666671
Last active Dec 17, 2015
Graph search algorithm implementation of searching for words on a boggle board in objective-c
View gist:5666671
#import <Foundation/Foundation.h>
@interface Node : NSObject
@property (nonatomic, strong) NSString * letter;
@property (nonatomic, strong) NSMutableSet * adjacentNodes;
@end
@implementation Node
-(NSMutableSet *)adjacentNodes{
if(_adjacentNodes){
@joelparsons
joelparsons / NSCoder+subscript.h
Created Jul 29, 2012
Category on NSCoder to support the objective-c subscript syntax
View NSCoder+subscript.h
//
// 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.