#OCR Integration Notes
Library Dependencies:
- [Tesseract OCR iOS]
- [GPUImage]
-Curves non-ARC objective-c code must have appropriate compiler flags -Filters
add_shortcode('cart_count', 'cart_count_sc'); | |
function cart_count_sc ($atts){ | |
$total = WC()->cart->cart_contents_count; | |
return '<span class="cart-count">'. $total . '</span>'; | |
} |
// >:D | |
var fns = Array< (String?) -> Bool >() | |
fns.append( {( input: String?) -> Bool in | |
return input == "hello" | |
}) | |
fns.append { (input: String?) -> Bool in | |
return input == "" | |
} |
#!/bin/sh | |
projectfile=`find -d . -name 'project.pbxproj'` | |
projectdir=`echo *.xcodeproj` | |
projectfile="${projectdir}/project.pbxproj" | |
tempfile="${projectdir}/project.pbxproj.out" | |
savefile="${projectdir}/project.pbxproj.mergesave" | |
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile | |
cp $projectfile $savefile |
//: Playground - noun: a place where people can play | |
import UIKit | |
import XCPlayground | |
var str = "Hello, playground" | |
extension UIView { |
#Setting Up AWS CodeCommit (Mac)
For all possibilities, amazon has guides here: http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up.html
We chose to use HTTPS here
If git asks you to manually enter username or password it is incorrectly configured!
Similar to RSA, the AWS CLI credential-helper should be using your keys to create and send a dynamic password that updates every 15 minutes.
//: Playground - noun: a place where people can play | |
import UIKit | |
import XCPlayground | |
var str = "Hello, playground" | |
let mainView = UIView (frame: CGRect(x: 0, y: 0, width: 300, height: 300)) | |
mainView.backgroundColor = UIColor(red: 0.74, green: 1.00, blue: 0.91, alpha: 1.00) | |
XCPlaygroundPage.currentPage.liveView = mainView |
def appendWithImport(filename): | |
with open (filename, "r+") as file: | |
original = file.read() | |
file.seek(0,0) | |
file.write("@import Foundation; \n" + original) | |
files = [ | |
"ZXingObjC-modified/aztec/decoder/ZXAztecDecoder.h", |
//: Playground - noun: a place where people can play | |
/** | |
More organized way to collect JSON-parsed variables. | |
Similar to JAVA's GSON where you file it into an object with known types and methods. | |
Best to run it in a SwiftPlayground | |
*/ | |
import Foundation | |
let originalJSONString = "{\"id\":234789,\"State\":\"California\",\"ArrayEx\":[\"element1\",\"element2\"]}" |