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:
| // | |
| // 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 |
| import AppKit | |
| public extension NSBezierPath { | |
| public convenience init(path: CGPath) { | |
| self.init() | |
| let pathPtr = UnsafeMutablePointer<NSBezierPath>.alloc(1) | |
| pathPtr.initialize(self) | |
| // | |
| // AppDelegate.swift | |
| // SwiftStructsMemoryLeak | |
| // | |
| // Created by Lukas Kubanek on 03/06/15. | |
| // Copyright (c) 2015 Lukas Kubanek. All rights reserved. | |
| // | |
| import Cocoa |
| class BaseClass {} | |
| protocol Protocol {} | |
| class Container<T where T: BaseClass, T: Protocol> { | |
| var array: [T] = [] | |
| } | |
| class FirstConformClass: BaseClass, Protocol {} | |
| class SecondConformClass: BaseClass, Protocol {} |
| // | |
| // 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:
To claim this, I am signing this object:
| - (void)method | |
| { | |
| NSUndoManager *undoManager = [self undoManager]; | |
| [undoManager disableUndoRegistration]; | |
| /* do something */ | |
| [self.managedObjectContext processPendingChanges]; | |
| [undoManager enableUndoRegistration]; | |
| } |
| #!/bin/sh | |
| # commands taken from http://osxdaily.com/2012/08/06/disable-notification-center-remove-menu-bar-icon-os-x/ | |
| # usage: curl -L https://gist.github.com/raw/4529265/eb7df9dcd9bf92ecab978ccc500bd80221565aef/disable-notification-center.sh | sh | |
| launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
| killall NotificationCenter |
| _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)'\ |
| #!/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 |