Skip to content

Instantly share code, notes, and snippets.

View xNekOIx's full-sized avatar
🇺🇦

Kostiantyn Bychkov xNekOIx

🇺🇦
View GitHub Profile
@staltz
staltz / introrx.md
Last active November 19, 2025 07:55
The introduction to Reactive Programming you've been missing
@oleksii-demedetskyi
oleksii-demedetskyi / Traits.m
Created May 5, 2014 22:07
Example trait usage.
#import <Foundation/Foundation.h>
#define trait(NAME) protocol NAME;\
@interface id_##NAME @end \
typedef id_##NAME<NAME> NAME; \
@protocol NAME
#define trait_implementation(NAME) \
interface NAME##_impl : NSObject<NAME>\
- (NAME *) asTrait$;\
@luca-bernardi
luca-bernardi / AVAsset+VideoOrientation.h
Created February 23, 2013 18:12
Find the video orientation of an AVAsset. (Useful if you need to send the video to a remote server)
//
// AVAsset+VideoOrientation.h
//
// Created by Luca Bernardi on 19/09/12.
// Copyright (c) 2012 Luca Bernardi. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
typedef enum {
LBVideoOrientationUp, //Device starts recording in Portrait
@sma
sma / AutoLocalize.h
Created August 8, 2011 07:29
Automatically localize all strings in XIB files settable by IB
//
// AutoLocalize.h
// AutoLocalize
//
// Created by Stefan Matthias Aust on 05.08.11.
// Copyright 2011 I.C.N.H. All rights reserved.
//
#import <UIKit/UIKit.h>