I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
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
{ | |
"translatorID":"04623cf0-313c-11df-9aae-0800200c9a66", | |
"translatorType":2, | |
"label":"ZotSelect Link", | |
"creator":"Scott Campbell, Avram Lyon, Nathan Schneider", | |
"target":"html", | |
"minVersion":"2.0", | |
"maxVersion":"", | |
"priority":200, | |
"inRepository":false, |
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
% Allow breaking at both hyphens and spaces | |
\usepackage[hyphens,spaces]{url} | |
% A sequence of BigBreaks will be treated as one break, so it will only be able to break after :// | |
\renewcommand{\UrlBigBreaks}{\do\:\do\/} | |
% (Less aggressive) Treat both / and - as breakable characters (don't know why this does something different than hyphens in the package declaration, but it does) | |
\renewcommand{\UrlBreaks}{\do\/\do\-} | |
% (More aggressive) Any letter and / are treated as breakable characters |
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
let toImage = UIImage(named:"image.png") | |
UIView.transitionWithView(self.imageView, | |
duration:5, | |
options: .TransitionCrossDissolve, | |
animations: { self.imageView.image = toImage }, | |
completion: nil) |
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
struct LowPassFilterSignal { | |
/// Current signal value | |
var value: Double | |
/// A scaling factor in the range 0.0..<1.0 that determines | |
/// how resistant the value is to change | |
let filterFactor: Double | |
/// Update the value, using filterFactor to attenuate changes | |
mutating func update(newValue: Double) { |