This file contains hidden or 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
/* | |
Assume that remote view controllers are instantiable inside of any application. | |
Give developers a header to give the instantiated VC an interface and be able to compile etc.. | |
*/ | |
#import "VENNewTransactionViewControllerXPCStub.h" // Give developers this header to give the transaction view controller an interface | |
... | |
// Assume a concrete class is available and instantiate it | |
if (NSClassFromString(@"VENNewTransactionViewController") { | |
VENNewTransactionViewController *newTransactionController = [[VENNewTransactionViewController alloc] init]; | |
} |
This file contains hidden or 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
if [ "$USER" == "_teamsserver" ]; then | |
echo "Running PreBotsStep" | |
cd $SRCROOT/../ | |
./setup --not-interactive | |
cd $SRCROOT | |
else | |
echo "Username: $USERNAME" | |
echo "Not on Bots Server, skipping PreBotsStep" | |
fi |
This file contains hidden or 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)startBluetoothStatusMonitoring { | |
// Horrible formatting, but nicer for blog-width! | |
self.bluetoothManager = [[CBCentralManager alloc] | |
initWithDelegate:self | |
queue:dispatch_get_main_queue() | |
options:@{CBCentralManagerOptionShowPowerAlertKey: @(NO)}]; | |
} | |
#pragma mark - CBCentralManagerDelegate |
This file contains hidden or 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
<view key="view" contentMode="scaleToFill" id="SHh-SP-yVu"> | |
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/> | |
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
<subviews> | |
<mapView mapType="standard" showsUserLocation="YES" showsBuildings="NO" id="UIZ-1B-l3e"> | |
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/> | |
</mapView> | |
<button opaque="NO" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="233-h5-Yuj"> | |
<rect key="frame" x="10" y="30" width="40" height="40"/> | |
<constraints> |
This file contains hidden or 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
<view key="view"> | |
<subviews> | |
<mapView mapType="standard" showsUserLocation="YES" showsBuildings="NO" /> | |
<button opaque="NO" contentMode="scaleAspectFill"> | |
<rect key="frame" x="10" y="30" width="40" height="40"/> | |
</button> | |
<view clipsSubviews="YES" contentMode="scaleToFill"> | |
<rect key="frame" x="0.0" y="414" width="320" height="100"/> | |
<subviews> | |
<collectionView opaque="NO"> |
This file contains hidden or 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
let array = ["@xwordy", "@elfederiko", "@chelseaheathh", "@jairo_avalos", "@JoshRamos0818", "@VeryBadHello" ] | |
let randomIndex = Int(arc4random_uniform(UInt32(array.count))) | |
print(array[randomIndex]) |
This file contains hidden or 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
# Script assumes it's running in a folder with all these files | |
IPA="ipa_to_resign.ipa" | |
PROVISION="my_enterprise_provision_profile.mobileprovision" | |
CERTIFICATE="iPhone Distribution: My Organization, Inc." # must be in keychain | |
# Unzip the IPA & delete existing codesigning | |
unzip -q "$IPA" | |
rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources | |
# Copy the new Provision Profile |
This file contains hidden or 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
[ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "_name", | |
"type": "string" | |
} |
This file contains hidden or 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
{ | |
"abi":[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "_owner", | |
"type": "address" |