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
See Profiles Configured on Machine: | |
$ vim ~/.aws/config | |
$ vim ~/.aws/credentials | |
Create profile | |
$ aws configure --profile YourProfileName1 | |
$ aws configure --profile YourProfileName2 |
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
<style> | |
.product-price { | |
display:none; | |
opacity: 0; | |
} | |
/* re-order categories */ | |
.category-nav .category-nav-links { | |
display: -webkit-box; | |
display: -ms-flexbox; |
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
Swift Lunch: Getting Started with ARKit (Augmented Reality framework for iOS 11). | |
Goals: | |
1. We'll review basic concepts of ARKit, run AR demos, review code, and go over steps to setup your development environmnet to start hacking with ARKit. | |
2. Discuss/brainstorm various AR prototypes that SpatialDev wants to implement over the next 1.5 months. | |
Time: | |
A minimum of 20-30 minutes. Can go longer if we want to do more code review. |
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
Scenario: | |
1. You have an Apple Developer subscription. | |
2. You currently have several apps that you need to maintain/update before Xcode 9 is officially released. | |
3. You don't want to install Xcode 9 beta on your Mac - but you still want to play with the Xcode 9 beta. | |
One Possible Solution: | |
Use Parallels to create a virtual machine of macOS then install Xcode 9 beta on it. | |
Step 1: Get macOS Sierra (current Version) | |
a. Open the App Store application on your current version of macOS. |
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
// set up - MapViewController is the parent. A ContainerView is used to place the UI for directions - part of the DirectionsViewController. | |
// The DirectionsViewController has a protocol method for letting the delegate know when a user has tapped the 'get directions' button and passes the to and from data | |
// this ViewController is the delegate for the DirectionsViewController | |
Class MapViewController: UIViewController, DirectionsViewControllerDelegate { | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
// for getting access to the DirectionsViewController and settings its delegate as THIS controller |
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
Parts of the doc that I don't want to forget ... | |
# finding a realm file - so you can view in Realm Browser | |
# link: https://realm.io/docs/swift/latest/#finding-a-realm-file | |
in lldb ... po Realm.Configuration.defaultConfiguration.fileURL | |
in terminal open the above path | |
# seperate realms for different users | |
# link: https://realm.io/docs/swift/latest/#other-realms |
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
func testSUT_CanResponseTo_UnwindSegue() { | |
// create source ViewController for unwind segue (i.e. the PlaceSearchViewController | |
let storyboard: UIStoryboard = UIStoryboard(name: "Main_iPhone", bundle: nil) | |
let placeSearchVC = storyboard.instantiateViewControllerWithIdentifier("PlaceSearchViewController") as! PlaceSearchViewController | |
placeSearchVC.targetSearchText = "Lincoln, NE" | |
let _ = placeSearchVC.view | |
// create unwind segue | |
let unwindSegue = UIStoryboardSegue(identifier: "unwindFromPlaceSearchViewController", source: placeSearchVC, destination: systemUnderTest) |
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 YourProjectModule | |
class ViewControllerTest: XCTestCase { | |
var systemUnderTest: ViewController! | |
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
import XCTest | |
@testable import YourProjectModule | |
class ViewControllerTest: XCTestCase { | |
var systemUnderTest: ViewController! | |
override func setUp() { | |
super.setUp() |
NewerOlder