I hereby claim:
- I am cbowns on github.
- I am cbowns (https://keybase.io/cbowns) on keybase.
- I have a public key ASDcgZLnH6jzgmU6mfcdi-XdWF1Z_qb2RLISud2ga7roUwo
To claim this, I am signing this object:
/** | |
A custom destination to log SwiftyBeaver calls through to Bugfender. | |
Via http://support.bugfender.com/supported-logging-frameworks/swiftybeaver-support | |
*/ | |
import Foundation | |
import SwiftyBeaver | |
import BugfenderSDK | |
public class BugfenderDestination: BaseDestination { |
# Pardon the craziness: | |
# Given a directory of `*.xcarchive`s: | |
# enter your app's name for "<App name>", if you have a folder of | |
# heterogenous archives to process: | |
for dir (*); do | |
name=`defaults read "\`pwd\`"/$dir/Info.plist Name` | |
if [ "$name" = "<App name>" ]; | |
then |
I hereby claim:
To claim this, I am signing this object:
// When calling `init()`, iOS 8 doesn't load our xib. Make sure we do. | |
// http://stackoverflow.com/a/25152545/774) | |
convenience init() { | |
let className = String(self.dynamicType).componentsSeparatedByString(".").last | |
self.init(nibName: className, bundle: nil) | |
} |
do { | |
try <#throwing method#> | |
} catch let error as NSError { | |
let errorString = "<#describe the error#>" | |
DDLogError("Error: \(errorString)") | |
DDLogError(error.debugDescription) | |
assert(false, errorString) | |
} |
% ssh-keygen -vvv -y -f id_rsa.converted | |
debug3: Incorrect RSA1 identifier | |
debug1: key_parse_private_pem: PEM_read_PrivateKey failed | |
debug1: read PEM private key done: type <unknown> | |
Enter passphrase: | |
debug3: Incorrect RSA1 identifier | |
debug1: key_parse_private_pem: PEM_read_PrivateKey failed | |
debug1: read PEM private key done: type <unknown> | |
load failed |
# Base function: | |
# Takes two arguments: a directory and a name for Xcode. | |
function open_with_xcode { | |
targetDirectory=$1 | |
xcodeApp=$2 | |
# If there's a workspace file, open that. | |
didFindXCWorkspace=`find $targetDirectory -depth 1 | grep -i .xcworkspace | wc -l | sed -e 's/^ *//g' -e 's/ *$//g'` | |
# Testing a glob with -d, like | |
# if [ -d *.xcworkspace ]; |
// Copyright (c) 2012-2013 Peter Steinberger (http://petersteinberger.com) | |
// | |
// 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: | |
// | |
// The above copyright notice and this permission notice shall be included in |
// An example of a model object with a boolean property | |
// that's backed by an NSNumber from a JSON response | |
@interface ModelObject : NSObject | |
@property (nonatomic, assign, getter = isEnabled) BOOL enabled; | |
@end | |
@interface ModelObject () |
# In the debugger: | |
# (fill in <home> and <image> below with your user path and the image's ivar | |
p (BOOL)[(NSFileManager *)[NSFileManager defaultManager] createFileAtPath:@"<home>/Desktop/image.png" contents:(void *)UIImagePNGRepresentation(<image>) attributes:nil] |