Skip to content

Instantly share code, notes, and snippets.

View bespalown's full-sized avatar

Viktor Bespalov bespalown

  • Alfa-Bank
  • Russia
View GitHub Profile
{
avatar = "http://fair-price.biz/system/images/avatar/3e51c87cbd73320a93dcc1e84fd7531e.jpg";
city = {
id = 1;
title = "\U0427\U0435\U0431\U043e\U043a\U0441\U0430\U0440\U044b";
};
"city_id" = 1;
"city_title" = "\U0427\U0435\U0431\U043e\U043a\U0441\U0430\U0440\U044b";
"contact_phone" = "+79196510456";
email = "bespalown@gmail.com";
{
avatar = "http://fair-price.biz/system/images/avatar/3e51c87cbd73320a93dcc1e84fd7531e.jpg";
city = {
id = 1;
title = "\U0427\U0435\U0431\U043e\U043a\U0441\U0430\U0440\U044b";
};
"city_id" = 1;
"city_title" = "\U0427\U0435\U0431\U043e\U043a\U0441\U0430\U0440\U044b";
"contact_phone" = "+79196510456";
email = "bespalown@gmail.com";
2014-05-15 18:04:56.312 FairPrice[32583:60b] ListCD jsonData as string:
[
{
"changing_state" : "changed",
"id" : "5355009861646d04f9010000",
"total_price" : {
"cents" : 0,
"currency" : "RUB"
},
"updated_at" : 1400162694,
@primaryFontName: ArialRoundedMTBold;
@secondaryFontName: ArialRoundedMTBold;
@secondaryFontNameBold: ArialRoundedMTBold;
@secondaryFontNameStrong: ArialRoundedMTBold;
@inputFontName: ArialRoundedMTBold;
@primaryFontColor: #666666;
@secondaryFontColor: #888888;
@navFontColor: #FFFFFF;
@primaryBackgroundColor: #E6E6E6;
@primaryBackgroundTintColor: #ECECEC;
{
"Invoices": [
{
"InvoiceId": 346156988613,
"UserId": 174392689263,
"UserTitle": "100000000002",
"Direction": "Out",
"Amount": 1,
"CurrencyId": 643,
"OrderId": "myOrderId",
{
"MinAmount": 1,
"MaxAmount": 15000,
"IsSafe": false,
"MasterFieldTitle": "Номер карты",
"ProviderId": "emtc",
"UserId": 190331661018,
"Title": "Перевод на карты Visa/MasterCard (Россия)",
"Description": "Перевод на карты Visa и MasterCard, эмитированные в России.",
"CurrencyId": 643,
@bespalown
bespalown / gist:ac70d0a5d687b039436f
Created December 1, 2014 09:14
pay.cards crash #1
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
Pay.Cards-[TSSurface checkStatus]
in TSSurface.m on Line 245
Occurrences1
Users1
# Binary Image Name Address Symbol
0 CoreFoundation 0x18d62a950 __exceptionPreprocess
1 libobjc.A.dylib 0x199b301fc objc_exception_throw
2 Pay.Cards 0x1000c91d4 -[TSSurface checkStatus] in TSSurface.m on Line 245
3 Pay.Cards 0x1000c8910 -[TSSurface postInitialization] in TSSurface.m on Line 36
@bespalown
bespalown / gist:afb33434591fa2a51fe9
Last active August 29, 2015 14:10
pay.cards crash#2
SIGSEGV
libGPUSupportMercury.dylibgpusSubmitDataBuffers
Occurrences1
Users1
# Binary Image Name Address Symbol
0 Pay.Cards 0x1000e85d3 testflight_backtrace
1 Pay.Cards 0x1000e7bf3 TFSignalHandler
2 libsystem_platform.dylib 0x195cd095b _sigtramp
3 libGPUSupportMercury.dylib 0x18d753127 gpusSubmitDataBuffers
PCDMerchant *merchant = [PCDMerchant new];
merchant.ID = @100018; //Merchant's ID. Should be obtained after a registration (see Prerequisites). Mandatory field.
merchant.password = @"ChuWeIle"; //Merchant's password. Should be obtained after a registration (see Prerequisites). Mandatory field.
merchant.clientId = @"Merchant_W1"; //Client's ID in Merchant's system. Mandatory field.
merchant.email = @"bespalown@gmail.com"; // Client's email. Can be empty.
merchant.phone = @"+79854619029"; //Client phone. Can be empty.
PCDCardScanViewController *scanDardVC = [PCDCardScanViewController new];
scanDardVC.merchant = merchant; //merchant property is necessary, otherwise error will occur
scanDardVC.delegate = self;
@interface VBScheduleData : VBMasterModels
@property (nonatomic, strong) NSNumber *utcTimeOffset;
@property (nonatomic, strong) NSNumber *executedTimes;
@property (nonatomic, strong) NSString *nextExecution;
@property (nonatomic, strong) VBOnceData *Once; //однократный платеж
@property (nonatomic, strong) VBDailyData *Daily; //по дням
@property (nonatomic, strong) VBWeeklyData *Weekly; //по неделям и дням недели
@property (nonatomic, strong) VBMonthlyDayOfMonthData *MonthlyDayOfMonth; //в опеределенное число месяца