This file contains hidden or 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
| -- bezier curve drawing functions for playdate lua | |
| -- these are based on de Casteljau's algorithm | |
| -- this site has a nice interactive demo to compare both types of curve: https://pomax.github.io/bezierinfo/#flattening | |
| -- Original code source: https://gist.github.com/jaames/5de95dd62d4522b86b8409f095b3925f | |
| -- draws a curve starting at x1,y1, ending at x3,y3, with x2,y2 being a control point that "pulls" the curve towards it | |
| -- steps is the number of line segments to use, lower is better for performance, higher makes your curve look smoother | |
| -- the playdate is kinda slow, so it's recommended to find a relatively low step number that looks passable enough! | |
| function drawQuadraticBezier(x1, y1, x2, y2, x3, y3, steps) |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <!-- (ORIGINAL AUTHOR, ORIGINAL HEADER) | |
| BBEdit Applescript Codeless Language Module. | |
| Bill Hernandez <http://www.mac-specialist.com/> | |
| Version 1.0.1 | |
| Updated - Monday, November 20, 2006 ( 6:41 PM ) | |
| Updated - Tuesday, November 21, 2006 ( 10:05 PM ) |
This file contains hidden or 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
| #import <Foundation/Foundation.h> | |
| #if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000 | |
| @interface NSString (PSPDFModernizer) | |
| // Added in iOS 8, retrofitted for iOS 7 | |
| - (BOOL)containsString:(NSString *)aString; | |
| @end |
This file contains hidden or 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
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |