- Typed errors
- Property observers from outside as a replacement for KVO
- Resolving the limitation in failable class initializers which require setting all stored properties before throwing an error or returning
nil
- Operator for reversed ranges (https://medium.com/@icex33/boundary-extension-in-swift-1f577af1aaa)
- Nested types in generic types
- Packages (inside frameworks, allowing cyclic dependencies)
- Members for protocols tied to the protocol type (e.g. for implementing factories on the protocol types)
- Abstract classes & class methods
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
// Optional Assignment | |
infix operator =? { associativity right precedence 90 } | |
/// Given a variable and an optional value it unwraps the optional value | |
/// and if it is non-nil it assigns the value to the variable. If the value | |
/// is nil it does nothing. | |
public func =? <T>(inout variable: T, optionalValue: T?) { | |
if let value = optionalValue { | |
variable = value |
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
// | |
// FailableMap.swift | |
// | |
// Created by Lukas Kubanek on 06/10/15. | |
// Copyright © 2015 Lukas Kubanek. All rights reserved. | |
// | |
public extension Array { | |
/// Maps the transform over `self` and if **all** calls return a non-nil result it returns |
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
_pandoc() | |
{ | |
typeset -A opt_args | |
local context state line | |
_arguments -s -S \ | |
'(-f+ --from=+)'{-r+,--read=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\ | |
'(-r+,--read=+)'{-f+,--from=+}'[Specify input format.]:FORMAT:(native json markdown textile rst html docbook latex)'\ | |
'(-t+ --to=+)'{-w+,--write=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\ | |
'(-w+ --write=+)'{-t+,--to=+}'[Specify output format.]:FORMAT:(native json plain markdown rst html html5 latex beamer context man mediawiki textile org texinfo docbook opendocument odt docx epub asciidoc slidy slideous dzslides s5 rtf)'\ |
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
#!/bin/bash | |
# Git Flow - A Successful Branching Model | |
# Resources for my lightning talk at WDCM Dresden on 10.05.2012 (http://wdcmdresden.com/14-lightning-talks/) | |
# Created by Lukas Kubanek (@kubanek_l) | |
# What is Git? | |
open "http://git-scm.com/" # New official Git website | |
open "http://wdcmdresden.com/8-git" # Git meeting where I held a talk about Git | |
open "http://try.github.com" # Git tutorial |
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
// | |
// AppDelegate.swift | |
// SwiftStructsMemoryLeak | |
// | |
// Created by Lukas Kubanek on 03/06/15. | |
// Copyright (c) 2015 Lukas Kubanek. All rights reserved. | |
// | |
import Cocoa |
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
class BaseClass {} | |
protocol Protocol {} | |
class Container<T where T: BaseClass, T: Protocol> { | |
var array: [T] = [] | |
} | |
class FirstConformClass: BaseClass, Protocol {} | |
class SecondConformClass: BaseClass, Protocol {} |
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
// | |
// CustomView.h | |
// IBSubclassTest | |
// | |
// Created by Lukas Kubanek on 17.06.2014. | |
// Copyright (c) 2014 Lukas Kubanek. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
I hereby claim:
- I am lukaskubanek on github.
- I am lukaskubanek (https://keybase.io/lukaskubanek) on keybase.
- I have a public key whose fingerprint is AC27 FB71 EDA6 37A4 2EB7 DCDC 6989 2B39 12E3 D15A
To claim this, I am signing this object:
NewerOlder