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
import 'package:flutter/material.dart'; | |
// BEGIN OF TEST | |
// 1 - Analyze the code and set a plan. (run first) - OK | |
// 2 - Select a solution for game logic (check winner, check tie, etc...) | |
// 3 - Select a state management solutin, probably "setState" directly for simplicity sake. | |
// 4 - "hello workd" UI to test logic | |
// 5 - finish players logic | |
// 6 - Polish solution | |
// ------ |
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
#!/bin/bash | |
# trap ctrl-c and call ctrl_c() | |
trap ctrl_c INT | |
function ctrl_c() { | |
echo "** Trapped CTRL-C" | |
exit 1 | |
} |
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
#DATE FORMAT - e.g. 'Mon Jun 19 21:20:50 2017 -0300' | |
git filter-branch --env-filter \ | |
'if [ $GIT_COMMIT = <COMMIT_HASH> ] | |
then | |
export GIT_AUTHOR_DATE=“<NEW_DATE>" | |
export GIT_COMMITTER_DATE="<NEW_DATE>" | |
fi' -f |
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
#import <Foundation/Foundation.h> | |
@protocol CRUploadProgressDelegate <NSObject> | |
-(void) didUploadBytes:(long) bytes; | |
@optional | |
-(BOOL) didCancelUpload; | |
@end |
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
#import <Foundation/Foundation.h> | |
@protocol CRAuthenticationDelegate <NSObject> | |
@optional | |
-(void) authDidStart:(NSDictionary<NSString*,NSString*> *) service; | |
-(void) authDidFinish:(NSDictionary<NSString*,NSString*> *) service; | |
-(void) authDidCancel:(NSDictionary<NSString*,NSString*> *) service; | |
@end |
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
// SwiftViewController.swift | |
// PrototypeApplication | |
// | |
// Created by Felipe César Silveira de Assis on 12/12/17. | |
// Copyright © 2017 CloudRail. All rights reserved. | |
// | |
import UIKit | |
import CloudrailSI |
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
// SwiftViewController.swift | |
// PrototypeApplication | |
// | |
// Created by Felipe César Silveira de Assis on 12/12/17. | |
// Copyright © 2017 CloudRail. All rights reserved. | |
// | |
import UIKit | |
import CloudrailSI |
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
["airport", | |
"atm", | |
"amusement_park", | |
"aquarium", | |
"art_gallery", | |
"bakery", | |
"bank", | |
"bar", | |
"beauty_salon", | |
"bicycle_store", |
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)viewDidAppear:(BOOL)animated{ | |
self.box = [[CRBox alloc] initWithClientId:@"" clientSecret:@""]; | |
NSString * restored_state = [NSUserDefaults.standardUserDefaults objectForKey:@"box_state"]; | |
if (restored_state != nil ) { | |
[self.box loadAsString:restored_state]; | |
NSString * userName = [self.box userName]; | |
NSString * userLogin = [self.box userLogin]; | |
NSLog(@"%@ - %@", userName, userLogin); |
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
echo "Target architectures: $ARCHS" | |
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | |
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | |
do | |
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" | |
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") |
NewerOlder