I hereby claim:
- I am aclima93 on github.
- I am aclima93 (https://keybase.io/aclima93) on keybase.
- I have a public key ASDVtyOtAN-HfNRgZVWoyoP053JtAG1EMvqctW440zMDzAo
To claim this, I am signing this object:
| [user] | |
| name = António Lima | |
| email = <user@organization> | |
| [alias] | |
| # list aliases | |
| alias = "!git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /" | |
| # push to origin [branch_name] |
| import CoreLocation | |
| class ARCLViewController: UIViewController, CLLocationManagerDelegate { | |
| var locationManager: CLLocationManager! | |
| var latestLocation: CLLocation? | |
| func setupLocation() { | |
| // Setup location manager | |
| locationManager = CLLocationManager() |
| func getRouteSegments(startCoordinate: CLLocationCoordinate2D, endCoordinate: CLLocationCoordinate2D) { | |
| // Request the walking directions between the two points | |
| let directionRequest = setupRouteDirectionsRequest(startCoordinate: startCoordinate, endCoordinate: endCoordinate) | |
| let directions = MKDirections(request: directionRequest) | |
| directions.calculate { | |
| (response, error) -> Void in | |
| guard let response = response else { | |
| if let error = error { | |
| print("Error: \(error)") |
| var sceneLocationView: SceneLocationView! | |
| var pois: [PointOfInterest]! | |
| var locationAnnotationNode2POI: [LocationTextAnnotationNode: PointOfInterest]! | |
| var selectedPOI: PointOfInterest? | |
| func setupARScene() { | |
| // create AR scene | |
| sceneLocationView = SceneLocationView() | |
| view.addSubview(sceneLocationView) |
| var locationManager: CLLocationManager! | |
| var latestLocation: CLLocation? | |
| var pois: [PointOfInterest]! | |
| func getPOIs() { | |
| // formulate natural language query for nearby POIs | |
| let request = MKLocalSearch.Request() | |
| request.naturalLanguageQuery = "Restaurants" // or any other thing you might be interested in | |
| request.region = MKCoordinateRegion(center: (latestLocation?.coordinate)!, |
| open class LocationTextAnnotationNode: LocationNode { | |
| // image and text that are displayed by the child nodes | |
| public let image: UIImage | |
| public let text: String | |
| // child nodes | |
| public let imageAnnotationNode: SCNNode | |
| public let textAnnotationNode: SCNNode | |
| func addPOIToARScene(_ poi: PointOfInterest) { | |
| // create node | |
| let location = CLLocation(latitude: poi.latitude, longitude: poi.longitude) | |
| let text = poi.title | |
| let annotationNode = LocationTextAnnotationNode(location: location, image: UIImage(named: "LocationMarker")!, text: text) | |
| // add node to AR scene | |
| sceneLocationView.addLocationNodeWithConfirmedLocation(locationNode: annotationNode) | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # default values | |
| SRC=${1:-_site/} | |
| DST=${2:-docs/} | |
| USER_PAGE=${3:-../aclima93.github.io/} | |
| BLOG_PAGE=${3:-../Blog/docs/} | |
| # copy the contents from $SRC (_site/) to $DST (doc/) and serve that over at github-pages | |
| rm -rf $DST; |
| #!/usr/bin/env xcrun --sdk macosx swift | |
| // A build phase script for fetching, validating and generating a Swift wrapper over configuration files in iOS projects | |
| // Source: https://github.com/pgorzelany/SwiftConfiguration | |
| import Foundation | |
| public struct ParsedArguments { | |
| public let configurationPlistFilePath: String | |
| public let outputFilePath: String | |
| } |