This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf8 | |
## explained in details | |
## in this blog: http://www.akpdev.com/articles/2016/05/26/Leonidas.html | |
class Point: | |
''' Represents a point | |
''' | |
def __init__(self, x = 0, y = 0): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://gist.github.com/gonzalezreal/92507b53d2b1e267d49a | |
import UIKit | |
protocol ReusableViewWithDefaultIdentifier { | |
static var defaultReuseIdentifier: String { get } | |
} | |
extension ReusableViewWithDefaultIdentifier where Self: UIView { | |
static var defaultReuseIdentifier: String { |