SegueManager has been moved to a CocoaPod, see the repository.
It is still possible to use it by just copying a single file into your project:
- SegueManager.swift for iOS
- SegueManager.swift for OSX
/* Domain model */ | |
// A Profile consists of a person name and an optional avatar | |
struct Profile { | |
let personName: PersonName | |
let avatarURL: NSURL? | |
} | |
// These are the UX rules for showing a greeting: |
import Foundation | |
let obj = NSNumber(int: 2) | |
func correct<T>() -> T? { | |
if let val = obj as? T { | |
println("matching types") | |
return val | |
} |
// This is now available as a full library instead of a gist: https://github.com/Q42/RxPromise |
function fixMapScrollwheel(map) { | |
map.setOptions({ scrollwheel: false }); | |
google.maps.event.addListener(map, 'click', function() { | |
map.setOptions({ scrollwheel: true }); | |
}); | |
google.maps.event.addListener(map, 'mouseout', function() { | |
map.setOptions({ scrollwheel: false }); | |
}); |
SegueManager has been moved to a CocoaPod, see the repository.
It is still possible to use it by just copying a single file into your project:
// Current (C# 5) syntax | |
var request = new CreateIndexRequest("new-index-name") | |
{ | |
IndexSettings = new IndexSettings | |
{ | |
Settings = new Dictionary<string, object> | |
{ | |
{"index.settings", "value"} | |
}, | |
Mappings = new List<RootObjectMapping> |