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>
@CavalcanteLeo
CavalcanteLeo / Preferences.sublime-settings
Last active August 11, 2016 13:31
Sublime preferences
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"draw_indent_guides": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@CavalcanteLeo
CavalcanteLeo / .zshrc
Last active April 5, 2018 17:54
style and aliases for .zshrc
export ZSH=/Users/Leo-KiddoLabs/.oh-my-zsh
export TERM="xterm-256color"
export LESS='-R'
export LESSOPEN='|~/.lessfilter %s'
plugins=(git git-extras github atom)
ZSH_THEME="LeoTerminal"
.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.
//