Skip to content

Instantly share code, notes, and snippets.

View flipjorge's full-sized avatar

Filipe Jorge flipjorge

View GitHub Profile
@flipjorge
flipjorge / .zshrc
Created June 10, 2020 11:47
My zshrc prompt
PROMPT=$'\n%n@%m %1d\n> '
@flipjorge
flipjorge / .gitconfig
Last active February 23, 2020 01:48
Git alias
[alias]
st = status
co = checkout
cb = checkout -b
b = branch
bd = branch -d
c = commit
cm = commit -m
l = log
gl = log --oneline --graph --decorate --all
@flipjorge
flipjorge / CoreDataStack.h
Created June 8, 2012 21:44
iOS Core Data Stack snippet
#import <Foundation/Foundation.h>
@interface CoreDataStack : NSObject
@property (readonly, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (nonatomic, copy) NSString *dataModelFilename;
@property (nonatomic, copy) NSString *storePath;
@flipjorge
flipjorge / Directory.h
Created June 8, 2012 21:18
iOS Directories paths helper
#import <Foundation/Foundation.h>
@interface Directory : NSObject
+(NSString*)documents;
+(NSString*)temp;
+(NSString*)library;
+(NSString*)bundle;
+(NSString*)cache;
+(NSString*)preferences;
@flipjorge
flipjorge / Singleton.h
Created June 8, 2012 21:05
iOS Singleton snippet
@interface Singleton
+(Singleton*)sharedSingleton;
@end