Skip to content

Instantly share code, notes, and snippets.

View yeradis's full-sized avatar

Yeradis P. Barbosa Marrero yeradis

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yeradis on github.
  • I am yeradis (https://keybase.io/yeradis) on keybase.
  • I have a public key ASChrCQXLhmC4fuj8ahlsxhDZ3a7gWGQtKfSJBr-K02m1Qo

To claim this, I am signing this object:

@yeradis
yeradis / amadeus_workflow.md
Created December 13, 2016 09:42 — forked from codesnik/amadeus_workflow.md
amadeus wokflow

SEARCH & DISPLAY

get session from pool

get customer input (departure, destination, dates, passengers count)

# search for recommendations conforming to customer input
do Fare_TravelBoardSearch
@yeradis
yeradis / autolayout_error_after_accesibilityIdentifier.log
Last active June 17, 2016 22:45
iOS Autolayout Debugging Tricks - Abusing AccesibilityIdentifier and Constraint Identifier
2016-06-16 10:17:54.528 QNChat[90242:8483681] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x7fb2451f8d70 V:|-(33)-[cell_contentLabel] (Names: cell_contentLabel:0x7fb24530e6b0, cell_box:0x7fb242d0ff10, '|':cell_box:0x7fb242d0ff10 )>",
"<NSLayoutConstraint:0x7fb2453001a0 V:[cell_contentLabel]-(29)-| (Names: cell_box:0x7fb242d0ff10, cell_contentLabel:0x7fb24530e6b0, '|':cell_box:0x7fb242d0ff10 )>",
"<NSLayoutConstraint:0x7fb24507d2e0 UITableViewCellContentView:0x7fb242e604d0.topMargin == cell_box.top (Names: cell_box:0x7fb242d0ff10 )>",
"<NSLayoutConstraint:0x7fb245089e90 UITableViewCellContentView:0x7fb242e604d0.bottomMargin == cell_box.bottom (Names: cell_box:0x7fb242d0ff10 )>",
#import "QNTestingAppDelegate.h"
@implementation QNTestingAppDelegate
@end
// QNTestingAppDelegate.h
@interface QNTestingAppDelegate : UIResponder
@property (nonatomic, strong) UIWindow *window;
@end
int main(int argc, char * argv[])
{
@autoreleasepool {
Class appDelegateClass = NSClassFromString(@"QNTestingAppDelegate");
if (!appDelegateClass)
appDelegateClass = [QNAppDelegate class];
return UIApplicationMain(argc, argv, nil, NSStringFromClass(appDelegateClass));
}
}
private_lane :upload_itunes do |options|
# Make sure we don't have any uncommited changes
ensure_git_status_clean
ensure_git_branch(
branch: "(master|release\\S+|hotfix\\S+)"
)
increment_build_number(
xcodeproj:app_config[:app_project_path]
) #increments the build number (an integer),
desc "Responsible for Generating APNs iOS Certificates and p12p"
private_lane :generate_apns do |options|
app_id= CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
pem_name = options[:pem_name];
scheme = (options[:development] ? "Development" : "Production")
pem(
development: options[:development],
force: options[:force],
lane :pilot_free do
upload_testflight(
scheme:app_config[:app_scheme]
)
end
desc "Responsible for uploading to testfligh"
private_lane :upload_testflight do |options|
increment_build_number #increments the build number (an integer)
build_release(scheme:options[:scheme])
@yeradis
yeradis / pilot_free.sh
Last active April 27, 2016 14:08
Custom lane
fastlane ios pilot_free