Skip to content

Instantly share code, notes, and snippets.

View tomasharkema's full-sized avatar

Tomas Harkema tomasharkema

View GitHub Profile
protocol Method {
associatedtype ReturnType
static var name: String { get }
var parameters: [AnyObject]? { get }
}
extension METDDPClient {
func callMethod<T : Method>(method: T) -> Promise<T.ReturnType, MeteorError> {
return callMethodWithNamePromise(T.name, parameters: method.parameters)
@tomasharkema
tomasharkema / dabblet.css
Created September 8, 2014 14:41 — forked from anonymous/dabblet.css
Oefening 2.2a - Formulier
/**
* Oefening 2.2a - Formulier
*/