Skip to content

Instantly share code, notes, and snippets.

@AndyDunn
AndyDunn / gist:58e39124a0006f034df0
Created November 7, 2014 07:52
Change Git Repo URL
git remote -v
# View existing remotes
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL
@AndyDunn
AndyDunn / gist:3c05a595a8074ba34643
Created November 2, 2014 14:26
Convert NSData to NSString
NSString *myString = [[NSString alloc] initWithData:myData encoding:NSUTF8StringEncoding];
@AndyDunn
AndyDunn / gist:e136e364d55b1291bf62
Created November 1, 2014 19:24
Hide Empty UITableView Rows
self.tableFooterView = [UIView new];