This file contains 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
1. Open Terminal | |
2. cd to your Xcode project | |
3. Execute the following when inside your target project: | |
find . -name "*.[hm]" -print0 | xargs -0 wc -l |
This file contains 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 XCTest | |
@testable import YourAppTargetname | |
class SideMenuViewControllerTest: XCTestCase { | |
var viewControllerUnderTest: SideMenuViewController! | |
override func setUp() { | |
super.setUp() | |
This file contains 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
Notes for Creating a Cocoa Pod | |
Pod Version: 0.39.0 | |
OS: OS X El Capitain (10.11.3) | |
- - - - - - - - - - - - - - - - - - - - - - - | |
1. Install CocoaPods (https://guides.cocoapods.org/using/getting-started.html) | |
2. Create Xcode project to author the Pod |
This file contains 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
/** | |
For configuring the NavigationBar to show/hide when user swipes | |
- returns: void | |
*/ | |
func configureNavigationBarAsHideable() { | |
if let navigationController = self.navigationController { | |
// respond to swipe and hide/show | |
navigationController.hidesBarsOnSwipe = true |
This file contains 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
func testControllerShowsAlertIfUserLogsInWithEmptyUsernameAndPasswordTextField() { | |
// mock of LoginViewController | |
class MockLoginViewController: LoginViewController { | |
var presentViewControllerTarget: UIViewController? | |
override func presentViewController(viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?) { | |
presentViewControllerTarget = viewControllerToPresent | |
} | |
} | |
This file contains 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
class ViewControllerTest: XCTestCase { | |
var systemUnderTest: ViewController! | |
override func setUp() { | |
super.setUp() | |
//get the storyboard the ViewController under test is inside | |
let storyboard: UIStoryboard = UIStoryboard(name: "Main_iPhone", bundle: nil) |
This file contains 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 com.google.android.gms.maps.CameraUpdate; | |
import com.google.android.gms.maps.CameraUpdateFactory; | |
import com.google.android.gms.maps.GoogleMap; | |
import com.google.android.gms.maps.GoogleMap.OnMapClickListener; | |
import com.google.android.gms.maps.MapFragment; | |
import com.google.android.gms.maps.model.LatLng; | |
import com.google.android.gms.maps.model.MarkerOptions; | |
import android.app.Activity; | |
import android.content.Context; |
This file contains 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
1. Create an empty develop branch (off of master) and pushes it to the server | |
git branch development | |
git push -u origin development | |
2. Clone the central repo and creates a tracking branch for develop | |
git clone url/to/repo | |
git checkout development |
This file contains 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: | |
Notes for installing Apache - PostgreSQL - PostGIS - PHP (LAPPP) on an AWS EC2 Ubuntu 16.x Server for development. | |
------------------------------------------------------------------------------------------------------------------------------- | |
--------------------------------------------------------- | |
PART 1: Stand Up an Ubuntu 16.x server on AWS EC2 | |
--------------------------------------------------------- |
NewerOlder