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
| #!/usr/bin/env bash | |
| # Config | |
| MAINTAINER="Jed Frey" | |
| VERSION=3.2.0 | |
| # Adapted from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ | |
| apt-get install --yes libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev \ | |
| libswscale-dev libxvidcore-dev libx264-dev libv4l-dev liblapacke-dev libgtk-3-dev \ | |
| libopenblas-dev libhdf5-dev libtesseract-dev libleptonica-dev \ |
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
| forwardBarButtonItem_ = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPlay target:self action:@selector(goForward:)]; | |
| // back button needs more treatment... | |
| UIGraphicsBeginImageContextWithOptions(CGSizeMake(27, 22), NO, 0.0); | |
| CGContextRef context = UIGraphicsGetCurrentContext(); | |
| CGContextSetFillColor(context, CGColorGetComponents([UIColor blackColor].CGColor)); | |
| CGContextBeginPath(context); | |
| CGContextMoveToPoint(context, 8.0f, 13.0f); | |
| CGContextAddLineToPoint(context, 24.0f, 4.0f); | |
| CGContextAddLineToPoint(context, 24.0f, 22.0f); |
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
| #! /bin/sh | |
| # On alternate invocations, this script | |
| # saves the path of the source file currently open in Xcode | |
| # and restores the file at that path in Xcode. | |
| # | |
| # By setting Xcode (in Behaviors) to run this script when "Run Starts" | |
| # and when "Run Completes", you can prevent it from switching to main.m | |
| # when a run finishes. | |
| # See http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator |