This file contains hidden or 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
| import UIKit | |
| public protocol AnimationFrameControllerCallback: class { | |
| func update(frame: Int) | |
| func ended() | |
| } | |
| public extension Animator { | |
| final public class FrameController { | |
| public var duration: TimeInterval = 0 |
This file contains hidden or 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
| OUTPUT_PATH=~/tmp/ | |
| if [ "$1" ] | |
| then | |
| d=`date "+%Y.%m.%d %H:%M:%S %a"` | |
| filepath=`date "+%Y%m%d".txt` | |
| echo "[$d]" $1 | |
| echo "[$d]" $1 >> $OUTPUT_PATH$filepath | |
| fi |
This file contains hidden or 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
| struct LimitedQueue<Element> { | |
| //MARK: - Property | |
| private var items: [Element] = [] | |
| private var limit: Int = 0 | |
| var isLimited: Bool { | |
| return (limit > 0) | |
| } | |
| var isFull: Bool { |
This file contains hidden or 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
| #import <Foundation/Foundation.h> | |
| @interface NSIndexPath (FixIssues) | |
| + (void) switchFixIssuesMethods; | |
| @end |