Skip to content

Instantly share code, notes, and snippets.

View yberdnikov's full-sized avatar
🏠
Working from home

Iurii Berdnikov yberdnikov

🏠
Working from home
View GitHub Profile
@yberdnikov
yberdnikov / Good IOS RTSP Player.md
Created June 19, 2020 19:47 — forked from oc2pcoj/Good IOS RTSP Player.md
iOS RTSP player for IP video cameras
extension UITextField {
func addCancelButton() {
let cancelButton = UIButton(frame: CGRect(x:0, y: 0, width: bounds.height, height: bounds.height))
cancelButton.setImage(UIImage(named: "textfield-cancel-button"), for: .normal)
cancelButton.addTarget(self, action: #selector(clearContent), for: .touchUpInside)
self.rightView = cancelButton
self.rightViewMode = .whileEditing
}
//
// SlideAnimatedTransitioning.h
// SwipeLeft
//
// Created by Visnu on 4/14/14.
// Copyright (c) 2014 Visnu Pitiyanuvath. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface IntrinsicTableView : UITableView
@end
@yberdnikov
yberdnikov / API.swift
Last active August 29, 2015 14:06 — forked from higepon/API.swift
//
// API.swift
//
// Created by Taro Minowa on 6/10/14.
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved.
//
import Foundation
typealias JSONDictionary = Dictionary<String, AnyObject>
@yberdnikov
yberdnikov / gist:3f4e29212c75d6bacc67
Created May 24, 2014 19:47
C Programming FAQs: Frequently Asked Questions
Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.arcor.de!newsfeed.freenet.de!novso.com!news-out.newsfeeds.com!local!news.eskimo.com!eskimo.com!scs
From: [email protected] (Steve Summit)
Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.answers,news.answers
Subject: comp.lang.c Answers to Frequently Asked Questions (FAQ List)
Followup-To: poster
Date: 1 Nov 2008 10:00:10 GMT
Organization: better late than never
Lines: 7132
Approved: [email protected]
Expires: 3 Dec 2008 00:00:00 GMT
@interface UIView (MPAdditions)
@end
@implementation UIView (MPAdditions)
- (id)debugQuickLookObject {
CGSize size = self.bounds.size;
if (size.width < 0.0f || size.height < 0.0f) {
return nil;
}