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 "AFNetworking.h" | |
- (IBAction)uploadTest:(id)sender { | |
NSURL *url = [NSURL URLWithString:@"https://xxx.s3-ap-northeast-1.amazonaws.com/"]; | |
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url]; | |
NSData *imageData = UIImagePNGRepresentation([UIImage imageNamed:@"194-note-2.png"]); | |
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"xxxxx/videos/XXXXW",@"key", | |
@"XXXXXXXX",@"AWSAccessKeyId", | |
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
function calcBirthNumber(bd) { | |
function _calcBirthNumber(bd) { | |
var ret = 0; | |
bd.toString().split("").forEach(function(num){ret = ret + parseInt(num)}); | |
return ret; | |
} | |
var upper = _calcBirthNumber(bd); | |
var lower = _calcBirthNumber(upper); | |
return upper + "/" + lower; |
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
SELECT | |
event_date, | |
event_timestamp, | |
user_first_touch_timestamp, | |
event_name, | |
user_id, | |
user_pseudo_id, | |
traffic_source.name traffic_source_name, | |
traffic_source.medium traffic_source_medium, | |
traffic_source.source traffic_source_source, |