Skip to content

Instantly share code, notes, and snippets.

View Shilo's full-sized avatar

Shilo Shilo

View GitHub Profile
@Shilo
Shilo / SHAnimatableColor.h
Created July 16, 2011 02:54
A simple animatable color extension for Sparrow.
//
// SHAnimatableColor.h
// Sparrow
//
// Created by Shilo White on 7/15/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Simplified BSD License.
//
@Shilo
Shilo / SHOverflowTextField.h
Created September 15, 2011 04:41
A simple overflow text extension for Sparrow.
//
// SHOverflowTextField.h
// Sparrow
//
// Created by Shilo White on 9/14/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SPTextField.h"
@Shilo
Shilo / SPTexture+Additions.h
Created October 17, 2011 07:43
A SPTexture category for Sparrow that will replace or remove colors.
//
// SPTexture+Additions.h
// Sparrow
//
// Created by Shilo White on 10/15/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SPTexture.h"
@Shilo
Shilo / UIImage+Additions.h
Created October 17, 2011 07:43
A UIImage category that will replace or remove colors. This allows multiple colors to be changed on a single image, until it has alpha values.
//
// UIImage+Additions.h
// Sparrow
//
// Created by Shilo White on 10/16/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff)
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff)
@Shilo
Shilo / SHClippedSprite.h
Created November 7, 2011 23:23
A simple clipped sprite extension for Sparrow
//
// SHClippedSprite.h
// Sparrow
//
// Created by Shilo White on 5/30/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Simplified BSD License.
//
@Shilo
Shilo / SHPinchEvent.h
Created November 7, 2011 23:27
A simple pinch event extension for Sparrow
//
// SHPinchEvent.h
// Sparrow
//
// Created by Shilo White on 6/4/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Simplified BSD License.
//
@Shilo
Shilo / Sparrow+SupportPadResolution.h
Created November 7, 2011 23:28
A Sparrow category that allows support for iPad resolution.
//
// Sparrow+SupportPadResolution.h
// UniversalTextureTest
//
// Created by Shilo White on 11/7/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SPStage.h"
@Shilo
Shilo / NSObject+AssociatedValues.h
Created November 9, 2011 05:56
A simple Objective-C wrapper that allows easier use of Associated Objects.
//
// NSObject+AssociatedValues.h
//
// Created by Shilo White on 11/8/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@Shilo
Shilo / SPTextField+AutoSize.h
Created November 9, 2011 23:24
A simple category for Sparrow that allows one to auto size an SPTextField.
//
// SPTextField+AutoSize.h
// Sparrow
//
// Created by Shilo White on 9/17/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
@Shilo
Shilo / OrientatedViewController.h
Created November 10, 2011 01:24
A UIViewController subclass that allows one to easily set the allowed orientations and content orientation.
//
// OrientatedViewController.h
//
// Created by Shilo White on 10/30/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum {