Skip to content

Instantly share code, notes, and snippets.

@dennda
dennda / -
Created April 16, 2018 18:21
This file has been truncated, but you can view the full file.
diff --git a/DuolingoMobile.xcodeproj/project.pbxproj b/DuolingoMobile.xcodeproj/project.pbxproj
index 498a54c7b..6256e0bce 100644
--- a/DuolingoMobile.xcodeproj/project.pbxproj
+++ b/DuolingoMobile.xcodeproj/project.pbxproj
@@ -11,7 +11,7 @@
9B02BA5993444D925474C2BA /* Pods_DuolingoMobileTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57AC2F41A1F7D68D0875702F /* Pods_DuolingoMobileTests.framework */; };
BF_100128383904 /* checkpoint-check.pdf in Resources */ = {isa = PBXBuildFile; fileRef = FR_509133817729 /* checkpoint-check.pdf */; };
BF_101255416285 /* ModalHomeBarVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = FR_757705638958 /* ModalHomeBarVC.swift */; };
- BF_101527506823 /* DUOSignInNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = FR_498720758294-1 /* DUOSignInNavigationController.m */; };
+ BF_101527506823 /* DUOSignInNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = "FR_498720758294-1" /* DUOSignInNavigationController.m */
//
// FileClient.swift
// Flashcards
//
// Created by David Klionsky on 4/18/16.
// Copyright © 2016 Duolingo, Inc. All rights reserved.
//
import Foundation
class PDFViewBitmapCacheKey: Hashable {
let name: String
let width: Int
let height: Int
let scaleMode: PDFImage.ScaleMode
let page: PDFImage.Page
init(name: String, size: CGSize, scaleMode: PDFImage.ScaleMode, page: PDFImage.Page) {
self.name = name
// Note that we want to make sure we're using integer values for the size, or we might fall prey to float imprecisions
func nilAndPrintError<T>(errorMessage: String) -> T? {
println(errorMessage)
return nil
}
// usage:
func myFunc() -> SomeType? {
return nilAndPrintError("myFunc failed, O the embarrassment!")
}
¯\_(ツ)_/¯
Jun 20 15:24:20: --- last message repeated 1 time ---
Jun 20 15:24:20 Christophers-MacBook-Pro MacVim[37071]: -[MMAppController applicationWillTerminate:]@676: 1 zombies left behind
Jun 20 15:24:20 Christophers-MacBook-Pro Vim[37059]: -[MMBackend(Private) connectionDidDie:]@2308: Main connection was lost before process had a chance to terminate; preserving swap files.
Jun 20 15:24:20 Christophers-MacBook-Pro Vim[37074]: -[MMBackend(Private) connectionDidDie:]@2308: Main connection was lost before process had a chance to terminate; preserving swap files.
Jun 20 15:24:20 Christophers-MacBook-Pro Vim[37086]: -[MMBackend(Private) connectionDidDie:]@2308: Main connection was lost before process had a chance to terminate; preserving swap files.
Jun 20 15:25:50 Christophers-MacBook-Pro Vim[37127]: -[MMBackend(Private) connectionDidDie:]@2308: Main connection was lost before process had a chance to terminate; preserving swap files.
Jun 20 15:26:02 Christophers-MacBook-Pro Vim[37142]: -[MMBackend(Private) connectionDi
(lldb) po someObject
error: error: reference to 'id' is ambiguous
note: candidate found by name lookup is 'id'
note: candidate found by name lookup is 'id'
error: 1 errors parsing expression
(lldb) p someObject
error: error: reference to 'id' is ambiguous
note: candidate found by name lookup is 'id'
note: candidate found by name lookup is 'id'
Error metrics: rms 4.829160 pRms 1.739667 rmsC 4.832783 pRmsC 1.736882
max: 45.000000 45.000000 46.000000 33.000000
maxC: 45.000004 45.000004 46.000004
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil,
NSStringFromClass([AppDelegate class]));
}
}