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/bash | |
| git clone https://github.com/ProcursusTeam/Procursus | |
| mkdir -p /opt/procursus/bin | |
| brew install gmake | |
| ln -s /usr/local/bin/gmake /opt/procursus/bin/make | |
| brew install bash | |
| ln -s /usr/local/bin/bash /opt/procursus/bin/bash | |
| curl -fLss "https://raw.githubusercontent.com/julian-klode/triehash/master/triehash.pl" -o /opt/procursus/bin/triehash |
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
| typedef struct CM_BRIDGED_TYPE(id) VTImageRotationSession* VTImageRotationSessionRef; | |
| typedef struct CM_BRIDGED_TYPE(id) VTPixelTransferSession* VTPixelTransferSessionRef; | |
| extern "C" { | |
| OSStatus VTImageRotationSessionCreate(CFAllocatorRef, uint32_t, VTImageRotationSessionRef*); | |
| OSStatus VTImageRotationSessionSetProperty(VTImageRotationSessionRef, CFStringRef, CFTypeRef); | |
| OSStatus VTImageRotationSessionSetProperties(VTImageRotationSessionRef, CFDictionaryRef); | |
| OSStatus VTImageRotationSessionTransferImage(VTImageRotationSessionRef, CVPixelBufferRef, CVPixelBufferRef); | |
| OSStatus VTImageRotationSessionTransferSubImage(VTImageRotationSessionRef, CVPixelBufferRef, CVPixelBufferRef); | |
| OSStatus VTPixelTransferSessionCreate(CFAllocatorRef, VTPixelTransferSessionRef*); | |
| OSStatus VTPixelTransferSessionSetProperty(VTPixelTransferSessionRef, CFStringRef, CFTypeRef); |
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/bash | |
| IOS_MIN_SDK_VERSION="12.0" | |
| IOS_SDK_VERSION="" | |
| VERSION="1.1.1" # OpenSSL version default | |
| CORES=8 | |
| OPENSSL_VERSION="openssl-${VERSION}" | |
| DEVELOPER=`xcode-select -print-path` | |
| PLATFORM="iPhoneOS" | |
| SYSROOT="${DEVELOPER}/Platforms/$PLATFORM.platform/Developer/SDKs/${PLATFORM}${IOS_SDK_VERSION}.sdk" |
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
| function flat(obj, prefix, is_arr) { | |
| if (!prefix) { | |
| prefix = ""; | |
| is_arr = false; | |
| var tobj = Object.prototype.toString.call(obj); | |
| if (tobj == "[object Array]") { | |
| is_arr = true; | |
| } | |
| } | |
| return Object.keys(obj).reduce(function(memo, prop) { |