Skip to content

Instantly share code, notes, and snippets.

View mhennemeyer's full-sized avatar

Matthias Hennemeyer mhennemeyer

View GitHub Profile
//
// MHImageEditing.swift
// BildRotation
//
// Created by Matthias Hennemeyer on 22.11.18.
// Copyright © 2018 Matthias Hennemeyer. MIT.
//
import UIKit
@mhennemeyer
mhennemeyer / UIColor+Crayons.swift
Last active September 4, 2018 09:56
UIColor Crayons Extension Swift
//
// UIColor+Crayons.swift
// Created by Matthias Hennemeyer
//
import Foundation
import UIKit
extension UIColor {
static let cantaloupe = UIColor.init(red:255.0/255.0, green:206.0/255.0, blue:110.0/255.0, alpha:1)
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
UISwipeGestureRecognizer *recognizer;
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionRight)];
[[self view] addGestureRecognizer:recognizer];
[recognizer release];
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeft:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionLeft)];
[[self view] addGestureRecognizer:recognizer];
- (NSString *)title {
return self.mTitle;
}
- (NSString *)subtitle {
return self.mSubTitle;
}
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
class A
def meth
end
end
A.send(:undef_method, :meth)
A.new.methods.include?(:meth) #=> true with macruby... false with any other ruby version