Skip to content

Instantly share code, notes, and snippets.


Matej Bukovinski matej

View GitHub Profile
Catfish-Man / sethack.m
Created Mar 11, 2016
Demonstrating the trick of using stack-allocated mimics and sets for lookup tables instead of heap allocated keys and dictionaries
View sethack.m
// Compile with clang -framework Foundation sethack.m
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
CFHashBytes from
#define ELF_STEP(B) T1 = (H << 4) + B; T2 = T1 & 0xF0000000; if (T2) T1 ^= (T2 >> 24); T1 &= (~T2); H = T1;
matej / CALayer+MBAnimationPersistence.h
Last active Oct 16, 2020
Persists (pauses) layer animations (including UIView animation generated animations) when the application enters into background and restores (resumes) animations from where they left off upon returning from background.
View CALayer+MBAnimationPersistence.h
// CALayer+MBAnimationPersistence.h
// Created by Matej Bukovinski on 19. 03. 14.
// Copyright (c) 2014 Matej Bukovinski. All rights reserved.
#import <QuartzCore/QuartzCore.h>
You can’t perform that action at this time.