I hereby claim:
- I am radex on github.
- I am radex (https://keybase.io/radex) on keybase.
- I have a public key whose fingerprint is A9FD C246 0304 B06B 0824 B38C 245D 336F 4800 EDC3
To claim this, I am signing this object:
- (void)disableKeyboardScroll | |
{ | |
self.webView.scrollView.scrollEnabled = NO; | |
self.webView.scrollView.delegate = self; | |
} | |
- (void)scrollViewDidScroll:(UIScrollView *)scrollView | |
{ | |
self.webView.scrollView.bounds = self.webView.bounds; | |
} |
struct R { | |
struct Images { | |
static var doge: NSImage { | |
return NSImage(contentsOfFile: "...")! | |
} | |
} | |
} | |
R.Images.doge |
import Foundation | |
func foo() -> AnyObject? { | |
return NSDictionary() | |
} | |
func cast<A>(type: A.Type)(object: Any) -> A? { | |
return object as? A | |
} |
import Foundation | |
func foo() -> AnyObject? { | |
return NSDictionary() | |
} | |
func cast<A>(type: A.Type)(object: Any) -> A? { | |
return object as? A | |
} |
source 'https://github.com/CocoaPods/Specs.git' | |
target :iOS do | |
platform :ios, '7.1' | |
link_with 'YourAppTarget', 'WidgetExtension', 'ShareExtension' | |
# pods... | |
end | |
target :Mac do |
class Foo { | |
struct Keys { | |
static let keychainGroup = "com.foo.keychain-group" | |
static let enabled = "foo.enabled" | |
} | |
// now you can just write `Keys.enabled`, `Keys.keychainGroup` inside of the Foo class. | |
} |
infix operator ??= { | |
associativity right | |
precedence 90 | |
assignment | |
} | |
func ??= <T>(inout variable: T?, expr: @autoclosure () -> T) { | |
if variable == nil { | |
variable = expr() | |
} |
import Foundation | |
struct Stream { | |
let string: NSString | |
var position: Int | |
var matchingRange: NSRange { | |
return NSRange(location: position, length: string.length - position) | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
{ | |
"name": "MASShortcut", | |
"version": "1.2.3", | |
"summary": "Modern framework for managing global keyboard shortcuts compatible with Mac App Store.", | |
"description": " Some time ago Cocoa developers used a brilliant framework ShortcutRecorder for managing keyboard shortcuts in application preferences. However, it became incompatible with a new plugin architecture of Xcode 4. \n\n The project MASShortcut introduces modern API and user interface for recording, storing and using global keyboard shortcuts. All code is compatible with Xcode 4.3, Mac OS X 10.7 and the sandboxed environment.\n", | |
"homepage": "http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html", | |
"license": "BSD", | |
"authors": { | |
"Vadim Shpakovski": "[email protected]" | |
}, |