This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List iPhone 7/7+ availability in every US Apple Store: | |
https://reserve.cdn-apple.com/US/en_US/reserve/iPhone/availability.json | |
List all US Apple Stores: | |
https://reserve.cdn-apple.com/US/en_US/reserve/iPhone/stores.json | |
iPhone 7/7+ model numbers: | |
https://www.techwalls.com/iphone-7-plus-model-differences/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *) platform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BaseViewController.m | |
// | |
// Created by Peter Boctor on 5/4/11. | |
// | |
// Copyright (c) 2011 Peter Boctor | |
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -rubygems | |
require 'open-uri' | |
require 'hpricot' | |
require 'aws/s3' | |
require 'yaml' | |
require 'json' | |
def save_in_s3(key, data, bucket, options) | |
amazon_s3_settings = YAML.load(open(File.join(File.dirname(__FILE__), "amazon_s3.yml"){ |f| f.read })) | |
AWS::S3::Base.establish_connection!(:access_key_id => amazon_s3_settings[:access_key_id], :secret_access_key => amazon_s3_settings[:secret_access_key]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) addTabBarArrow | |
{ | |
UIImage* tabBarArrowImage = [UIImage imageNamed:@"TabBarNipple.png"]; | |
self.tabBarArrow = [[[UIImageView alloc] initWithImage:tabBarArrowImage] autorelease]; | |
CGRect frame = CGRectMake([self horizontalLocationFor:0], -4, [tabBarArrow frame].size.width, [tabBarArrow frame].size.height); | |
[tabBarArrow setFrame:frame]; | |
[[tabBarController tabBar] addSubview:tabBarArrow]; | |
} |