Skip to content

Instantly share code, notes, and snippets.

View loudmouth's full-sized avatar
💭
working on gojust.com (Gitlab project)

JP loudmouth

💭
working on gojust.com (Gitlab project)
View GitHub Profile
import Foundation
// Inspired by https://gist.github.com/mbuchetics/c9bc6c22033014aa0c550d3b4324411a
struct JSONCodingKeys: CodingKey {
var stringValue: String
init?(stringValue: String) {
self.stringValue = stringValue
}
extension Client {
/**
Fetch a collection of Entries from Contentful matching the specified query. This method does not
specify the content_type in the query parameters, so the entries returned in the results can be
of any type.
- Parameter query: The Query object to match results againts.
- Parameter completion: A handler being called on completion of the request.
@loudmouth
loudmouth / Thread_Backtrace.md
Created August 23, 2016 14:14
Backtrace on fresh install

warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available. thread #1: tid = 0x581a0, 0x24f96920 libsystem_kernel.dylibsemaphore_wait_trap + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame #0: 0x24f96920 libsystem_kernel.dylibsemaphore_wait_trap + 8 frame #1: 0x2504b3a4 libsystem_platform.dylib_os_semaphore_wait + 12 frame #2: 0x02e9a850 libdispatch.dylibdispatch_once_f + 300 frame #3: 0x0027a298 Uberchord+[UCPersistentStack defaultPersistentStack] [inlined] _dispatch_once(predicate=0x007e16f4, block=0x00fda904) + 18 at once.h:68 frame #4: 0x0027a286 Uberchord+[UCPersistentStack defaultPersistentStack](self=0x007c4330, _cmd="defaultPersistentStack") + 94 at UCPersistentStack.m:68 frame #5: 0x002c779c Uberchord-[UCUserProgress updateStreak](self=0x1670a6c0, _cmd="updateStreak") + 1076 at UCUserProgress.m:426 frame #6: 0x00146bc4 Uberchord__42-[AppDelegate applicationDidBecomeAct