Skip to content

Instantly share code, notes, and snippets.

View georgmay's full-sized avatar
🎯
Focusing

George Maisuradze georgmay

🎯
Focusing
View GitHub Profile
@georgmay
georgmay / NibLoadable.swift
Last active July 9, 2019 08:30
Set of UIView extensions allowing to load UIView from xib easily
import Foundation
import UIKit.UIView
public protocol NibLoadable {
static var nibName: String { get }
}
public extension NibLoadable where Self: UIView {
public var nibName: String {
class Solution {
func generateMatrix(_ n: Int) -> [[Int]] {
enum Dir {
case up
case down
case left
case right
}
let m = n
@georgmay
georgmay / GPUImageFiveInputFilter.h
Created December 13, 2014 05:13
GPUImageFilter with custom shader up for five textures. Never thought I'd gonna make something like this.
#import <GPUImage/GPUImage.h>
#import "GPUImageFourInputFilter.h"
@interface GPUImageFiveInputFilter : GPUImageFourInputFilter
{
GPUImageFramebuffer *fifthInputFramebuffer;
GLint filterFifthTextureCoordinateAttribute;
GLint filterInputTextureUniform5;
GPUImageRotationMode inputRotation5;