Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sarahsnow1
sarahsnow1 / SKNode+Helper.m
Created June 10, 2014 04:08
SKNode+Helper.m
#import "SKNode+Helper.h"
@implementation SKNode (Helper)
- (float)width {
return self.frame.size.width;
}
- (float)height {
return self.frame.size.height;
@sarahsnow1
sarahsnow1 / SKNode+Helper.h
Created June 10, 2014 04:08
SKNode+Helper.h
@interface SKNode (Helper)
- (float)width;
- (float)height;
- (float)top;
- (float)bottom;
- (float)left;
- (float)right;
- (void)centerXInParent;
@sarahsnow1
sarahsnow1 / EatifyApiClient
Created May 29, 2013 16:04
An API client for the Volley networking library modelled after AFNetworking
package com.eatify.Eatify.api;
public class EatifyApiClient extends VolleyApiClient {
private static volatile EatifyApiClient instance;
public static EatifyApiClient shared() {
if (instance == null) {
synchronized (EatifyApiClient.class) {
if (instance == null) {