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
KYCApiManager.init().requestProfileGetProfile(email: email, mobileNo: self.mobileNo ?? "", completion: { (status, response, message) in | |
KYCSDK.hideActivityIndicator() | |
if status { | |
if response?.resultData?.info?.redirectURL != nil, response?.resultData?.info?.redirectURL != "" { | |
// https://www.facebook.com/?resultCode=04&resultMessage=CLASSIFY_FAIL | |
var url:String = (response?.resultData?.info?.redirectURL)! | |
if self.resultCode != nil, self.resultCode != "", self.resultMessage != nil, self.resultMessage != "" { | |
self.resultMessage = self.resultMessage!.replacingOccurrences(of: " ", with: "_") | |
url = "\(url)/?resultCode=\(self.resultCode!)&resultMessage=\(self.resultMessage!)&transactionId=\(KYCSDK.configKYC.transactionId!)" |
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
{ | |
"data" : { | |
"campaignPackages" : [ | |
{ | |
"_id" : "5e46314169b3de663d4c6529", | |
"details" : [ | |
{ | |
"sub_th" : " Max Speed | FUP 10 Mbps", | |
"th" : "• เน็ต ", | |
"sub_en" : " Max Speed | FUP 10 Mbps", |
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
.controller('AddQuestionCtrl', function($scope, $http, $base64){ | |
$scope.save = function(){ | |
console.log('SAVE'); | |
var url = 'http://XXXXX/wp-json/wp/v2/posts'; | |
var username = 'XXXX'; | |
var psw2 = 'XXXXX'; | |
$http.post(url, {question: $scope.question},{ | |
headers:{ | |
'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8', |
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
<?php | |
include 'vendor/autoload.php'; | |
include 'simple_html_dom.php'; | |
include 'utility.php'; | |
//include 'config.inc.php'; | |
define('API_TOKEN', "abcdef123456789!@#$%^&*()_+"); | |
use GuzzleHttp\Client; |
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
{ | |
"data": [ | |
{ | |
"name": "The Primary Football Field", | |
"id": "331783936911780" | |
}, | |
{ | |
"name": "The Primary Football Field", | |
"id": "921012131314995" | |
}, |
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
{ | |
"data": [ | |
{ | |
"name": "Thammasat University (TU.C Rangsit)", | |
"id": "101595643245022" | |
}, | |
{ | |
"name": "The Primary Football Field", | |
"id": "331783936911780" | |
}, |
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
https://github.com/Krelborn/KILabel | |
https://github.com/TTTAttributedLabel/TTTAttributedLabel | |
https://github.com/zacwest/ZSWTappableLabel | |
https://github.com/NimbusKit/attributedlabel | |
https://github.com/ProjectDent/LinkLabel | |
https://github.com/psharanda/Atributika |
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
PackageInfo info; | |
try { | |
info = getPackageManager().getPackageInfo("com.hackskill.giftreward", PackageManager.GET_SIGNATURES); | |
for (Signature signature : info.signatures) { | |
MessageDigest md; | |
md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); | |
String something = new String(Base64.encode(md.digest(), 0)); | |
//String something = new String(Base64.encodeBytes(md.digest())); | |
Log.d("hash key", something); |
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)checkShopIsOpen { | |
NSDateFormatter *df = [NSDateFormatter new]; | |
df.dateFormat = @"HH:mm:ss"; | |
NSDate *openTime = [df dateFromString:_shop.open_time]; | |
NSDate *closeTime = [df dateFromString:_shop.close_time]; | |
NSCalendar *calendar = [NSCalendar currentCalendar]; | |
NSDateComponents *components = [calendar components:(NSCalendarUnitHour | NSCalendarUnitMinute) fromDate:openTime]; |
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 ([product hasLimitDownload]) { | |
if ([product hasLimitByDate]) { | |
NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; | |
[formatter setDateFormat:@"dd/MM/yy hh:mm"]; | |
//[formatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; | |
//[formatter setCalendar:[NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian]]; | |
//[formatter setLocale:[NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]]; | |
NewerOlder