Skip to content

Instantly share code, notes, and snippets.

View twhaolee's full-sized avatar

Hao Lee twhaolee

  • Taipei
View GitHub Profile

Keybase proof

I hereby claim:

  • I am twhaolee on github.
  • I am twhaolee (https://keybase.io/twhaolee) on keybase.
  • I have a public key ASAl0o6E6mJOpz7_COkrSQaRW8SsGICG92U6C-GnCoDuTAo

To claim this, I am signing this object:

import signal
import time
from functools import wraps
class TimeoutException(Exception):
pass
def Timeout(timeout):
def decorator(func):
//
// UIViewController+Storyboard.swift
//
// Created by Hao Lee on 2018/1/2.
//
import Foundation
import UIKit
let kDefaultStoryboardName = "Main"
//
// NSObject+ClassName.swift
//
// Created by Hao Lee on 2018/1/2.
//
import Foundation
extension NSObject {
class func className() -> String {
//
// ExtensionButton.swift
//
// Created by Hao Lee on 2017/12/25.
//
import Foundation
import UIKit
@IBDesignable
//
// UIApplication+StatusBar.swift
//
// Created by Hao Lee on 2018/1/3.
//
import Foundation
import UIKit
extension UIApplication {
//
// UITableView+Reusable.swift
//
// Created by Hao Lee on 2018/1/25.
//
import Foundation
import UIKit
extension UITableView {
//
// UIColor+Image.swift
//
// Created by Hao Lee on 2017/12/25.
//
import Foundation
import UIKit
extension UIColor {
//
// NonBorderSegmentedControl.swift
//
// Created by Hao Lee on 2018/1/24.
//
import Foundation
import UIKit
/// A horizontal control made of multiple segments, each segment functioning as a discrete button.
import UIKit
extension UIColor {
/// The shorthand three-digit hexadecimal representation of color.
///
/// #RGB defines to the color #RRGGBB.
///
/// - Parameters:
/// - hex3: Three-digit hexadecimal value.