This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## OS X files | |
.DS_Store | |
.DS_Store? | |
.Trashes | |
.Spotlight-V100 | |
*.swp | |
## Xcode build files | |
DerivedData/ | |
build/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIImage { | |
class func imageByCombiningImage(firstImage: UIImage, withImage secondImage: UIImage) -> UIImage { | |
let newImageWidth = max(firstImage.size.width, secondImage.size.width ) | |
let newImageHeight = max(firstImage.size.height, secondImage.size.height) | |
let newImageSize = CGSize(width : newImageWidth, height: newImageHeight) | |
UIGraphicsBeginImageContextWithOptions(newImageSize, false, UIScreen.mainScreen().scale) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#toast-container > .toast { | |
background-image: none !important; | |
} | |
#toast-container > .toast:before { | |
position: fixed; | |
font-family: FontAwesome; | |
font-size: 24px; | |
line-height: 18px; | |
float: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Sequence { | |
func any(_ predicate: (Self.Iterator.Element) throws -> Bool) rethrows -> Bool { | |
for element in self { | |
let result = try predicate(element) | |
if result { | |
return true | |
} | |
} | |
return false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)switchToViewController:(UIViewController *)viewController | |
{ | |
UIViewController *currentViewController = self.childViewControllers[0]; | |
[self addChildViewController:viewController]; | |
[self transitionFromViewController:currentViewController toViewController:viewController duration:0.2 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{} | |
completion:^(BOOL finished) { | |
[currentViewController removeFromParentViewController]; | |
[self.containerView addSubview:viewController.view]; | |
}]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
git status -s | grep -e "^??" | cut -c 4- >> .gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreBluetooth | |
import RxSwift | |
import RxBluetoothKit | |
extension CBUUID { | |
var type: UUID { | |
return UUID(rawValue: uuidString)! | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode 7 Source Projects | |
# can be used for watchOS, tvOS, iOS, OSX, Swift development | |
# | |
# February 2016 | |
# | |
# Save this file as .gitignore in your repository's working directly. | |
# Note: Don't confuse the working directory with the .git directory. It will not work if you put it there. | |
# | |
##### |