A Pen by Matthias Hennemeyer on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MHImageEditing.swift | |
// BildRotation | |
// | |
// Created by Matthias Hennemeyer on 22.11.18. | |
// Copyright © 2018 Matthias Hennemeyer. MIT. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)title { | |
return self.mTitle; | |
} | |
- (NSString *)subtitle { | |
return self.mSubTitle; | |
} | |
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |