Skip to content

Instantly share code, notes, and snippets.

View coreyfloyd's full-sized avatar

Corey Floyd coreyfloyd

View GitHub Profile
@coreyfloyd
coreyfloyd / re-sign-ios-app.md
Created April 15, 2016 16:07 — forked from chaitanyagupta/re-sign-ios-app.md
How to re-sign an iOS app with another developer account

To re-sign an iOS app with another developer account, ensure that the following are in place first.

  1. Distribution certificate of the other developer account
  2. A provisioning profile from the other developer account

Note that the Apple requires bundle IDs to be globally unique, even across accounts. So a bundle ID i.e. CFBundleIdentifier from one account can't be used in a different account, even though the team id/prefix would be different.

Ensure that the new distribution certificate is in your keychain and the new provisioning profile on your disk.

  1. Unzip the .ipa. This will usually unzip to Payload/.app/
@coreyfloyd
coreyfloyd / Uncrustify Options
Created March 2, 2015 19:21
Plain language description of Uncrustify options
(copied from https://github.com/Glavin001/atom-beautify/issues/57)
# Uncrustify 0.60
#
# General options
#
newlines { Auto, LF, CR, CRLF }
The type of line endings
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Wed, 09 Apr 2014 13:33:39 GMT
<style>
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Wed, 09 Apr 2014 13:37:56 GMT
<style>

Task create one clase with the 2 methods below. ARC, iOS 7 only

#Class
PQHTMLParser

##Method 1

- (NSString*)plainTextFromHTML:(NSString*) html;
parameter: a string containing html

@coreyfloyd
coreyfloyd / git.txt
Last active December 17, 2015 13:19
git
current commit sha
git rev-list --max-count=1 HEAD
git rev-parse HEAD
keep added files after stash
git stash --keep-index
only stash un-added files
git stash -k
platform :ios, :deployment_target => '5.0'
#platform :osx, :deployment_target => '10.8'
#Utilities
pod 'FJCode'
pod 'MTDates'
#pod 'NSDate+Helper'
pod 'BlocksKit' #includes alert blocks
pod 'ObjectiveSugar' #ruby syntax
platform :ios, :deployment_target => '5.0'
set_arc_compatibility_flag!
pod 'MMDrawerController'
#Utilities
pod 'MTDates'
#pod 'NSDate+Helper'
pod 'BlocksKit' #includes alert blocks
Model Objects should be dumb - minimal logic
Model Controllers should perform model manipulations that are UI independent (like network and processing) exception: user input
No Story Boards
Implement classes with dependency injection - favor providing all data at instantiation
Code for iOS 6 - will back port to iOS 5 as necessary