Skip to content

Instantly share code, notes, and snippets.

View leeprobert's full-sized avatar

Lee Probert leeprobert

View GitHub Profile
@leeprobert
leeprobert / footwear.plist
Created December 9, 2013 09:06
A large data set of "Footwear" that can be used to quickly mock up some data in a Table or Collection View
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>brand</key>
<string>Other</string>
<key>models</key>
<array>
<string>Not listed</string>
// Standard library
#include <stdint.h>
#include <stdio.h>
// Core Foundation
#include <CoreFoundation/CoreFoundation.h>
// Cryptography
#include <CommonCrypto/CommonDigest.h>
@leeprobert
leeprobert / AGNJSONContainerLogger.h
Created July 3, 2013 11:43
AGNJSONValidator - suite of tools for validating JSON against schemas. Also references the AGNLogging classes.
//
// AGNJSONContainerLogger.h
// Agnitio iPlanner
//
// Created by Matt Gough on 14/02/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AGNContainerWalker.h"
@leeprobert
leeprobert / AGNLogging.h
Created July 3, 2013 11:34
AGNLogging - class for logging based on different priorities. Will log to a file and to the console. Requires the Lumberjack Framework : https://github.com/robbiehanson/CocoaLumberjack
//
// AGNLogging.h
// Agnitio iPlanner
//
// Created by Matt Gough on 14/02/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#import <Foundation/Foundation.h>
@leeprobert
leeprobert / AGNSession.m
Created July 3, 2013 11:33
AGNSession - Class for managing authentication and changes in permissions.
//
// AGNSession.m
// Agnitio iPlanner
//
// Created by Matt Gough on 04/02/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#if ! __has_feature(objc_arc)
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
@leeprobert
leeprobert / AGNContainerWalker.h
Created July 3, 2013 11:29
AGNContainerWalker - class for traversing an Array or Dictionary and broadcasting notifications with the results.
//
// AGNContainerWalker.h
// Agnitio iPlanner
//
// Created by Matt Gough on 14/02/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#import <Foundation/Foundation.h>
@leeprobert
leeprobert / AGNFolderDownloader.h
Created July 3, 2013 11:26
AGNFolderDownloader - Class for downloading a folder of files from a remote server. It will also make sure that a folder that is being updated is not corrupted whilst downloading. Folders are created in a temporary folder and then moved into place when completed.
//
// AGNFolderDownloader.h
// Agnitio iPlanner
//
// Created by Matt Gough on 11/03/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#import <Foundation/Foundation.h>
@leeprobert
leeprobert / UIView+DragAndDrop.h
Last active December 18, 2015 19:09
UIView+DragAndDrop is an iOS Category for enabling simple drag & drop functionality on any UIView
//
// UIView+DragAndDrop.h
// Engager
//
// Created by Lee Probert on 21/06/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
#import <UIKit/UIKit.h>
@leeprobert
leeprobert / EntypoLabel.h
Last active December 18, 2015 01:39
Entypo font icons as UILabel subclass. The entypo character set is very handy for designers and developers. http://www.entypo.com/ This UILabel subclass has a bunch of convenience methods for displaying icons based on the type of icon. Download the fonts and then refer to the Glyph guide to see what the icons look like. The guide matches the typ…
//
// EntypoLabel.h
// Engager
//
// Created by Lee Probert on 31/05/2013.
// Copyright (c) 2013 Agnitio. All rights reserved.
//
/*
This label is designed to be used with the Entypo.ttf font.
@leeprobert
leeprobert / CoreDataStack.h
Created May 2, 2013 14:54
Core Data class categories to extend the functionality. There are convenience methods for grabbing ALL objects of a particular entity, or via predicate. Also a convenient and safe way of setting attribute values from a JSON object with the same key names. Credit to CoreDataStack code : https://github.com/adamgit/CoreDataStack and to Tom Harringt…
/**
CoreDataStack - CoreData made easy
c.f. https://github.com/adamgit/CoreDataStack for docs + support
*/
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#define kNotificationDestroyAllNSFetchedResultsControllers @"DestroyAllNSFetchedResultsControllers"