Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ysix on github.
  • I am ysix (https://keybase.io/ysix) on keybase.
  • I have a public key ASCdwHExS4qI9XCczsx0XNAC71YEeLVRXum8Pzm-RKlbmwo

To claim this, I am signing this object:

@Ysix
Ysix / gist:c8d6b4f52840282c5fe983eedaeb377c
Created March 30, 2017 21:19
Guess first and last name from email address in swift
//: Playground - noun: a place where people can play
import UIKit
struct EmailInfo {
struct Guessed {
var firstname: String? = nil {
didSet {
if firstname != nil && firstname!.characters.count < 2 {