Skip to content

Instantly share code, notes, and snippets.

//
// MapViewController.h
// MapsCustomInfoWindow
//
// Created by Jon Friskics on 4/22/14.
// Copyright (c) 2014 Jon Friskics. All rights reserved.
//
#import <UIKit/UIKit.h>
.nav-tab {
...
// instead of putting it on
border-right: 1px solid #424242;
&:last-child {
border-right: 0; // and then taking it off
}
// use CSS not() to only apply to the elements you want
&:not(:last-child) {
border-right: 1px solid #424242;
find . -type f \( -name '*ViewController.m' -or -name '*ViewController.swift' \) -exec grep -L -e 'preferredStatusBarStyle' {} +
@CavalcanteLeo
CavalcanteLeo / LocationHelper.m
Created March 22, 2016 02:36 — forked from chrishulbert/LocationHelper.m
Blocks location helper for finding a very rough location on an iphone
//
// LocationHelper.m
//
// Created by Chris Hulbert on 24/04/12.
//
#import "LocationHelper.h"
@interface LocationHelper()
@property(copy) LocationBlock locationBlock;
@CavalcanteLeo
CavalcanteLeo / LocationHelper.h
Created March 22, 2016 02:36 — forked from chrishulbert/LocationHelper.h
Blocks location helper for finding a very rough location on an iphone
//
// LocationHelper.h
//
// Created by Chris Hulbert on 24/04/12.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#define locationHelperPurpose @"This app would like to know your location for some good reason." // Change this!
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
@interface FTUIHelper : NSObject
+ (UIImage *)createImageFromColor:(UIColor *)color;
+ (UIColor *)colorFromHexRGB:(NSString *)inColorString
@end
//
// JBSpotifyLoginViewController.h
// JukeBox
//
// Created by Andrei on 9/2/13.
// Copyright (c) 2013 andreipatru. All rights reserved.
//
#import "SPLoginViewController.h"
@CavalcanteLeo
CavalcanteLeo / CoreDataHelper.m
Created March 22, 2016 02:40 — forked from calebhicks/CoreDataHelper.m
Core Data Helper
//
// CoreDataHelper.m
// Wired In
//
// Created by Caleb Hicks on 6/20/14.
//
// Readme: I use a version of this file in each Core Data project I create. It runs as a Shared Instance.
// Simply, it returns the default Managed Object Context for the app. Sample methods also provided to save, create sample
// data, and log all data within the app. Adjust the Imports and related methods for your model objects.
//
@CavalcanteLeo
CavalcanteLeo / Directory.h
Created March 22, 2016 02:41 — forked from flipjorge/Directory.h
iOS Directories paths helper
#import <Foundation/Foundation.h>
@interface Directory : NSObject
+(NSString*)documents;
+(NSString*)temp;
+(NSString*)library;
+(NSString*)bundle;
+(NSString*)cache;
+(NSString*)preferences;
// DictionaryTypesHelper.h
#import <Foundation/Foundation.h>
@interface NSDictionary (NSDictionary_DictionaryTypesHelper)
- (NSArray*)arrayForKey:(id)key;
- (NSDictionary*)dictionaryForKey:(id)key;
- (NSString*)stringForKey:(id)key;
- (NSNumber*)numberForKey:(id)key;
- (NSData*)dataForKey:(id)key;