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
// Copyright Harry Jordan, 2012 http://inquisitivesoftware.com/ | |
// Open source under the MIT license http://www.opensource.org/licenses/MIT | |
#import <UIKit/UIKit.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
@interface UIImage (AJKImageWithPDF) |
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
#!/usr/bin/ruby | |
# MIT License: http://www.opensource.org/licenses/MIT | |
require 'pathname' | |
require 'open3' | |
# read arguments | |
shouldBuild = FALSE | |
initialDirectory = Pathname.getwd | |
# Using a path to differentiate between multiple versions of Xcode |
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
// | |
// Super Fast and Accurate string distance algorithm: Sift4 | |
// http://siderite.blogspot.com/2014/11/super-fast-and-accurate-string-distance.html | |
// | |
public func sift4(firstString: String, secondString: String, maxOffset: Int = 5, maxDistance: Int? = nil) -> Int? { | |
if firstString.isEmpty { | |
return secondString.isEmpty ? 0 : count(secondString) | |
} else if secondString.isEmpty { | |
return count(firstString) |