This file contains 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
// | |
// StatusOnAppDelegate.m | |
// StatusOn | |
// | |
// Created by Sergey Gavrilyuk on 5/16/11. | |
// Copyright 2011 SoftTechnics. All rights reserved. | |
// | |
#import "StatusOnAppDelegate.h" | |
#import "JSON.h" |
This file contains 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
////////////////////////////////////////////////////////////////////////////////////////// | |
// touch enter club | |
-(void)testEnterClub | |
{ | |
ClubEntrance *entrance = [ClubEntrance entry]; | |
entrance.userId = @"13"; | |
entrance.clubId = @"13"; | |
entrance.location = CLLocationCoordinate2DMake(42.730881,-74.000893); | |
entrance.radius = 100; |
This file contains 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() { | |
if (window.WDBO !== undefined) | |
return; | |
var WBDO = { | |
log_scope: {"ERROR": "error", | |
"INFO": "info", | |
"WARNING": "warn"}, | |
Y: YUI({}), |
This file contains 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
NSString *file_path = [[NSBundle mainBundle] pathForResource:@"06 mullet fever" ofType:@"mp3"]; | |
NSURL *url = [NSURL URLWithString:@"http://urbanentourage.com"]; | |
AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:url]; | |
NSMutableURLRequest *req = [client multipartFormRequestWithMethod:@"POST" | |
path:@"api/sightings" | |
parameters:[NSDictionary dictionaryWithObject:@"DOU1" forKey:@"sighting[name]"] | |
constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { | |
[formData appendPartWithFileData:[NSData dataWithContentsOfFile:file_path] | |
name:@"sighting[sound]" |
This file contains 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
upstream domain1 { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
server 127.0.0.1:3002; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; | |
rewrite ^/(.*) http://domain.com permanent; |
This file contains 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
//fraking hack to make textview scroll to make last lines visible | |
if (self.frame.size.height > old_frame.size.height) | |
{ | |
self.text = [self.text stringByAppendingString:@"A"]; | |
dispatch_async(dispatch_get_current_queue(), ^{ | |
self.text = [self.text substringToIndex:self.text.length - 1]; | |
}); | |
} |
This file contains 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
Exception Type: EXC_BAD_ACCESS Code: KERN_INVALID_ADDRESS at 0x70000008 | |
0 libobjc.A.dylib objc_msgSend + 15 | |
1 LocationSpoofer.dylib | |
2 Foundation __NSFireTimer + 144 | |
3 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14 | |
4 CoreFoundation __CFRunLoopDoTimer + 364 | |
5 CoreFoundation __CFRunLoopRun + 1206 | |
6 CoreFoundation CFRunLoopRunSpecific + 300 | |
7 CoreFoundation CFRunLoopRunInMode + 104 |
This file contains 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 <UIKit/UIKit.h> | |
@interface BlurredView : UIView | |
-(void)update; | |
@end |
This file contains 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
{ | |
'id': u'testbrqid', // какое айди | |
'tmax': 100, | |
'at': 2, | |
'app': { | |
'id': u'appid', | |
'name': u'appname', | |
'cat': [u'IAB1', u'IAB2-2'], // откуда будут браться категории | |
'publisher': { | |
'id': u'pubid', |
This file contains 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
Персональные данные (например: имя) отклонены модератором - 2 // что делать после этой ошибки? | |
разлогинивать юзера? | |
IP адрес заблокирован 27 // разлогинивать? | |
Необходимо подтверждение телефона при логине 28 // ??? | |
Телефон при логине введен неверно 29 // ??? | |
Пользователь удален 30 // текуший юзер? или просто чужая анкета ? | |
если чужая то как узнать что текущий пользователь удален |
OlderNewer