Skip to content

Instantly share code, notes, and snippets.

Probably napping.

Andy meteochu

Probably napping.
Block or report user

Report or block meteochu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View String+EmailValidation.swift
import Foundation
extension String {
var isValidEmail: Bool {
let emailRegEx = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
return NSPredicate(format:"SELF MATCHES %@", emailRegEx).evaluate(with: self)
meteochu / UIImage.Effects.swift
Last active Feb 15, 2019
Apple's UIImageEffect in Swift using iOS 10's new UIGraphicsImageRenderer
View UIImage.Effects.swift
// UIImage.Effects.swift
// Created by Andy Liang on 2016-06-19.
import UIKit
import Accelerate
meteochu / UIFont++.swift
Last active Feb 7, 2017
UIFont extension for UIFontTextStyle and UIFontWeight
View UIFont++.swift
import UIKit
extension UIFont {
enum TextStyle: String {
case title1
case title2
case title3
case headline
meteochu / Reachability.swift
Created Mar 6, 2016
Quick way to determine current Network Connection Type (Offline, WiFi, or Cellular)
View Reachability.swift
// Reachability.swift
// Created by Andy Liang on 2016-03-06.
// Copyright © 2015 Andy Liang. All rights reserved.
import SystemConfiguration

Keybase proof

I hereby claim:

  • I am meteochu on github.
  • I am meteochu ( on keybase.
  • I have a public key whose fingerprint is C44A 8429 8717 AC71 E2D6 C352 425E 1B03 37AF 0745

To claim this, I am signing this object:

You can’t perform that action at this time.