Skip to content

Instantly share code, notes, and snippets.

View MatthiasHoldorf's full-sized avatar

Matthias Holdorf MatthiasHoldorf

View GitHub Profile
@MatthiasHoldorf
MatthiasHoldorf / swift-GMSPlacesClient-sample-application
Created October 26, 2015 09:38
swift-GMSPlacesClient-sample-application
import UIKit
import CoreLocation
import GoogleMaps
class PlacesTableViewController: UITableViewController {
private var places: [Place]?
private let locationManager: CLLocationManager = CLLocationManager()
private var userLocation: CLLocation = CLLocation()
private let dateFormatter = NSDateFormatter()
private var placesClient: GMSPlacesClient!
/* Note: This implementation is deprecated as of iOS 9.
There is a tutorial regarding the new Contact Framework that can be found here:
http://www.appcoda.com/ios-contacts-framework/
*/
import UIKit
import AddressBook
class ViewController: UIViewController {
// Reference to user's address book
@MatthiasHoldorf
MatthiasHoldorf / swift-photos-metadata
Created October 26, 2015 08:45
swift-photos-metadata
import UIKit
import Photos
import AssetsLibrary
class ViewController: UIViewController {
private var images : PHFetchResult!
override func viewDidLoad() {
super.viewDidLoad()
@MatthiasHoldorf
MatthiasHoldorf / swift-photos-access
Last active October 26, 2015 08:48
swift-photos-access
import UIKit
import MobileCoreServices
class ViewController: UIViewController {
@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var chooseButton: UIButton!
private var imagePicker = UIImagePickerController()
override func viewDidLoad() {
@MatthiasHoldorf
MatthiasHoldorf / socket.io.client.js
Last active December 31, 2015 07:59
The client side JavaScript from socket.io.
/*! Socket.IO.js build:0.9.16, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
var io = ('undefined' === typeof module ? {} : module.exports);
(function() {
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/