Skip to content

Instantly share code, notes, and snippets.

View mrdavey's full-sized avatar
🙃
Exploring

David Truong mrdavey

🙃
Exploring
View GitHub Profile
Verifying my Blockstack ID is secured with the address 19BuCGqPZEXgwGgepxs5ZdiQQRSMhCcfFi https://explorer.blockstack.org/address/19BuCGqPZEXgwGgepxs5ZdiQQRSMhCcfFi
//: Natural Language Processing in iOS 11, with the help of this post: https://medium.com/swiftworld/swift-world-whats-new-in-ios-11-natural-language-processing-2a16b7422334
// This can only be run in Xcode 9
import UIKit
let options: NSLinguisticTagger.Options = [.omitPunctuation, .omitWhitespace]
let text = "Silicon Valley is a nickname for the southern portion of the San Francisco Bay Area, in the northern part of the U.S. state of California. In 2014, tech companies Google, Yahoo!, Facebook, Apple, and others, released corporate transparency reports that offered detailed employee breakdowns. Let's go running or walking to the shops."
let range = NSRange(location: 0, length: text.utf16.count)
//
@mrdavey
mrdavey / flurry_user_sessions.swift
Last active December 20, 2015 03:33 — forked from ydn/flurry_user_sessions.swift
Integrate Flurry Analytics
import Flurry_iOS_SDK
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
Flurry.startSession("YOUR_FLURRY_API_KEY")
// Your code...
return true
}