Skip to content

Instantly share code, notes, and snippets.

View nevyn's full-sized avatar

Nevyn Bengtsson nevyn

View GitHub Profile
START BUILD 771 FOR PROJECT GFTest
LOAD CACHE
1: Downloading project cache
2: Decompressing project cache
CHECKOUT SOURCE CODE
3: Cloning into '/workspace/source'...
4: remote: Counting objects: 15762, done.
5: remote: Compressing objects: 100% (194/194), done.
6: remote: Total 15762 (delta 1776), reused 1644 (delta 1644), pack-reused 13915
7: Receiving objects: 100% (15762/15762), 17.30 MiB 6.13 MiB/s, done.
└> pod spec lint Lookback.podspec
-> Lookback (1.0.4)
- WARN | [iOS] SSZipArchive/SSZipArchive/SSZipArchive.m:85:37: warning: implicit conversion loses integer precision: 'ZPOS64_T' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
- WARN | [iOS] SSZipArchive/SSZipArchive/SSZipArchive.m:85:59: warning: implicit conversion loses integer precision: 'ZPOS64_T' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
- WARN | [iOS] SSZipArchive/SSZipArchive/SSZipArchive.m:121:39: warning: implicit conversion loses integer precision: 'ZPOS64_T' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
- WARN | [iOS] SSZipArchive/SSZipArchive/SSZipArchive.m:121:61: warning: implicit conversion loses integer precision: 'ZPOS64_T' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
- WARN | [iOS] SSZipArchive/SSZipArchive/SSZipArchive.m:297:37: warning: implicit conversion loses integer precision: 'ZPOS
extension NSObject {
class func hej() -> Self? {
var s = NSStringFromClass(self as! AnyClass)
return nil;
}
}
@implementation NSManagedObject (TCCreation)
+ (instancetype)tc_insertIntoContext:(NSManagedObjectContext*)ctx
{
for(NSEntityDescription *desc in [ctx.persistentStoreCoordinator.managedObjectModel entities]) {
if([desc.managedObjectClassName isEqual:NSStringFromClass(self)]) {
return [[self alloc] initWithEntity:desc insertIntoManagedObjectContext:ctx];
}
}
NSAssert(NO, @"This class does not exist in the managed object model for %@", ctx);
return nil;
//
// UIScreen+UIScreen_GFNaturalSize.h
// LookBack
//
// Created by Nevyn Bengtsson on 2015-03-13.
// Copyright (c) 2015 Lookback. All rights reserved.
//
#import <UIKit/UIKit.h>
126: TiffUtil lb-clear.tiff
127: /usr/bin/tiffutil -cathidpicheck /workspace/source/Resources/Images/lb-clear@2x.png /workspace/source/Resources/Images/lb-clear@3x.png /workspace/source/Resources/Images/lb-clear.png -out /workspace/product/Release-iphoneos/Lookback.bundle/lb-clear.tiff
128: error: can't exec '/usr/bin/tiffutil' (Operation not permitted)
@nevyn
nevyn / LICENSE.md
Last active December 23, 2017 08:43
A generic NSError presenter for iOS, like -[UIApp presentError::::]. Depends on some Lookback internals that should be easy to remove, but I need to sleep

The MIT License (MIT)

Copyright (c) 2015 Lookback

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@nevyn
nevyn / GFNamespace.h
Created January 8, 2015 04:07
This is how I use open source libraries like SPAsync, FormatterKit, SWTableViewCell and others within the Lookback SDK, without getting linking conflicts within apps that use the same libraries.
// http://rentzsch.tumblr.com/post/40806448108/ns-poor-mans-namespacing-for-objective-c
// This namespacing method is used to namespace libraries used by Lookback, so
// that apps incorporating the SDK can have the same class in it without clashing.
// (ugh, give me swift nooow).
#ifndef GFNAMESPACE
// Default to using the 'GF' prefix
#define GFNAMESPACE GF
#endif
@nevyn
nevyn / unity.patch
Created September 27, 2014 15:20
Unity, what the FUCK is wrong with your floating point handling??? How am I supposed to work in teams like this?
diff --git a/Assets/First.unity b/Assets/First.unity
index 3e3a80c..b6bf31e 100644
--- a/Assets/First.unity
+++ b/Assets/First.unity
@@ -125,7 +125,7 @@ Transform:
m_GameObject: {fileID: 365291}
m_LocalRotation: {x: .00736813014, y: .968581915, z: .0814704522, w: -.234856069}
m_LocalPosition: {x: -.0620326661, y: .0539474636, z: -.074327141}
- m_LocalScale: {x: .441447079, y: .441447079, z: .441447109}
+ m_LocalScale: {x: .441447079, y: .441447109, z: .441447109}
@nevyn
nevyn / LookbackPrivateAPIOverrides.m
Last active August 29, 2015 14:06
LookbackPrivateAPIOverrides.m
#import <AVFoundation/AVFoundation.h>
@interface GFCameraRecorder : NSObject
@end
@interface GFCameraRecorder (PrivateAPIOverride)
+ (AVCaptureDevicePosition)captureDevicePosition;
@end
@implementation GFCameraRecorder (PrivateAPIOverride)
+ (AVCaptureDevicePosition)captureDevicePosition
{