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
#include <iostream> | |
template<typename T> | |
void foo(T val) { | |
std::cout << "void foo<T>(T val)" << std::endl; | |
} | |
void foo(int val) { | |
std::cout << "void foo(int val)" << std::endl; | |
} |
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
class SwipeCell: LLSwipeCell { | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
let button1 = UIButton() | |
button1.setTitle("1", forState: .Normal) | |
button1.frame = CGRect(x: 0, y: 0, width: 50, height: 10) | |
button1.backgroundColor = UIColor.redColor() | |
let button2 = UIButton() | |
button2.setTitle("2", forState: .Normal) |
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
public class LLSwipeCell: UITableViewCell, UIScrollViewDelegate { | |
@IBOutlet public weak var slideContentView: UIView! | |
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
internal func targetOffset(currentOffset: CGPoint) -> CGPoint { | |
if (currentOffset.x > leftXOffset + CGFloat(rightTriggerOffset)) { | |
return CGPoint(x: leftXOffset + rightXOffset, y: 0) | |
} else if (currentOffset.x < CGFloat(leftTriggerOffset)) { | |
return CGPointZero | |
} | |
return CGPoint(x: leftXOffset, y: 0) | |
} | |
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
class OverlayView: UIView { | |
weak var targetView: UIView? | |
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { | |
super.touchesBegan(touches, withEvent: event) | |
targetView?.touchesBegan(touches, withEvent: event) | |
} | |
override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) { | |
super.touchesMoved(touches, withEvent: event) |
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 // текуший юзер? или просто чужая анкета ? | |
если чужая то как узнать что текущий пользователь удален |
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
#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
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
//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]; | |
}); | |
} |