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)
MOVED TO: https://gist.github.com/tomasharkema/abe07e9394dcc6af5fbb0a665af7f4c8
@tomasharkema
tomasharkema / dabblet.css
Created September 8, 2014 14:41 — forked from anonymous/dabblet.css
Oefening 2.2a - Formulier
/**
* Oefening 2.2a - Formulier
*/