Skip to content

Instantly share code, notes, and snippets.

View KrysKruk's full-sized avatar

Krystian Kruk KrysKruk

  • Kraków, Poland
View GitHub Profile
@KrysKruk
KrysKruk / ClientCall.m
Created September 3, 2016 12:29
Objective C NSInvocation on UIButton
#import "ClientCall.h"
@import UIKit;
@implementation ClientCall
- (NSObject *) newInstance:(NSString *)name {
NSObject * instance = [[NSClassFromString(name) alloc] init];
@KrysKruk
KrysKruk / svg-style-by-hash.xml
Created April 22, 2016 12:54
Modify SVG style by URL hash
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg
PUBLIC '-//W3C//DTD SVG 1.1//EN'
'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-miterlimit:10;" version="1.1" viewBox="0 0 36 33" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style>
g#red:target path {
stroke: red;
}