Skip to content

Instantly share code, notes, and snippets.

View danielctull's full-sized avatar

Daniel Tull danielctull

View GitHub Profile
@danielctull
danielctull / ActivityController.h
Created December 13, 2012 13:56
A controller object that presents an activity view controller either modally or in a popover depending on the platform. It associates the created controller object with the activity view controller or popover controller, so that when either are dismissed, all the associations are removed. This way if you hold only a *weak* reference to the retur…
#import <UIKit/UIKit.h>
@interface ActivityController : NSObject
+ (instancetype)presentActivityItems:(NSArray *)activityItems
fromViewController:(UIViewController *)viewController
barButtonItem:(UIBarButtonItem *)item;
@end
@danielctull
danielctull / GlobalSettings.plist
Created August 7, 2012 14:48 — forked from samdeane/GlobalSettings.plist
Script for generating appledoc docs
<?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">
<dict>
<key>--project-company</key>
<string>Elegant Chaos</string>
<key>--company-id</key>
<string>com.elegantchaos</string>
<key>--keep-undocumented-objects</key>
<false/>
@mikehaertl
mikehaertl / gist:3258427
Created August 4, 2012 15:40
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
#import <Cocoa/Cocoa.h>
BOOL VerifyAppStoreReceipt();
BOOL VerifyAppStoreReceiptData(NSData *data);
NSURL *BackupReceiptURL();
void BackupAppStoreReceipt();
NSData *MACAddressData();
NSDictionary *DictionaryFromAppStoreReceipt(NSData *fullData);
@bewebste
bewebste / machine.h.motemplate
Created June 4, 2011 19:14
MOGenerator diff template
{
name = <$name$>,
managedObjectClassName = <$managedObjectClassName$>,
renamingIdentifier = <$renamingIdentifier$>,
isAbstract = <$isAbstract$>,
userInfo = <$userInfo$>,
relationships = (
<$foreach Relationship noninheritedRelationships do$>
{
name = <$Relationship.name$>,
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names