Skip to content

Instantly share code, notes, and snippets.

View OscarApeland's full-sized avatar

Oscar Apeland OscarApeland

  • Oslo
  • 10:13 (UTC -12:00)
View GitHub Profile
@couchdeveloper
couchdeveloper / RXTimer.h
Last active July 29, 2019 06:55
A timer based on dispatch_source_create() Objective-C
//
// RXTimer.h
//
// Copyright 2013 Andreas Grosam
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@vzsg
vzsg / DemoModels.swift
Last active March 7, 2018 20:54
Simple extension to use Codable JSON with Vapor 2
import Foundation
struct MagicTestRequest: Codable {
let tokens: [String]
}
struct MagicTestResponse: Codable {
let count: Int
}