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 |
| // 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) | |
| } |
| #pragma mark - | |
| #pragma mark CGFloat | |
| #pragma mark Trigonometric Functions | |
| #define CGFloatCos(a) (CGFLOAT_IS_DOUBLE ? cos(a) : cosf(a)) | |
| #define CGFloatSin(a) (CGFLOAT_IS_DOUBLE ? sin(a) : sinf(a)) | |
| #define CGFloatTan(a) (CGFLOAT_IS_DOUBLE ? tan(a) : tanf(a)) | |
| #define CGFloatACos(a) (CGFLOAT_IS_DOUBLE ? acos(a) : acosf(a)) | |
| #define CGFloatASin(a) (CGFLOAT_IS_DOUBLE ? asin(a) : asinf(a)) | |
| #define CGFloatATan(a) (CGFLOAT_IS_DOUBLE ? atan(a) : atanf(a)) |
| # From my .gitconfig. | |
| # Every time I use these, people get jealous. | |
| [alias] | |
| staged = diff --cached | |
| unstaged = diff | |
| list-staged = diff --staged --name-only | |
| list-unstaged = diff --name-only | |
| addp = add --patch | |
| addi = add --interactive | |
| amend = commit --amend --verbose |
I hereby claim:
To claim this, I am signing this object:
| % 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 |