Skip to content

Instantly share code, notes, and snippets.

View aclima93's full-sized avatar
💭
Including Bugs

António Lima aclima93

💭
Including Bugs
View GitHub Profile
@aclima93
aclima93 / ar_poi_selection.swift
Last active August 21, 2018 14:58
ARKit & CoreLocation + POI + AR Interaction
var sceneLocationView: SceneLocationView!
var pois: [PointOfInterest]!
var locationAnnotationNode2POI: [LocationTextAnnotationNode: PointOfInterest]!
var selectedPOI: PointOfInterest?
func setupARScene() {
// create AR scene
sceneLocationView = SceneLocationView()
view.addSubview(sceneLocationView)
@aclima93
aclima93 / poi_directions.swift
Last active August 21, 2018 14:57
ARKit & CoreLocation + POI + MapKit + Directions
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)")
@aclima93
aclima93 / current_location.swift
Last active July 10, 2018 16:41
ARKit & CoreLocation + Current Locaiton
import CoreLocation
class ARCLViewController: UIViewController, CLLocationManagerDelegate {
var locationManager: CLLocationManager!
var latestLocation: CLLocation?
func setupLocation() {
// Setup location manager
locationManager = CLLocationManager()
@aclima93
aclima93 / .gitconfig
Last active October 25, 2023 08:06
useful git aliases
[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]