Skip to content

Instantly share code, notes, and snippets.

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

Marko Hlebar markohlebar

🏠
Working from home
View GitHub Profile
#!/usr/bin/env ruby -w
class String
def starts_with?(prefix)
prefix.respond_to?(:to_str) && self[0, prefix.length] == prefix
end
end
HEADER_REGEX = /^#import\s+["<](.*)[">]/
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2013 Peter Steinberger. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
#import <objc/runtime.h>
#import <objc/message.h>
// Compile-time selector checks.
@markohlebar
markohlebar / introrx.md
Created October 9, 2015 15:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing