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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>StandardOutPath</key> | |
<string>/var/log/jenkins/jenkins.log</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/jenkins/jenkins.log</string> | |
<key>EnvironmentVariables</key> | |
<dict> |
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
#!/bin/bash | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
export CMAKE_C_COMPILER=${CC} | |
export CMAKE_CXX_COMPILER=${CXX} | |
export ANDROID_NDK=/usr/local/opt/android-ndk | |
export ANDROID_HOME=${HOME}/Development/android-sdk-macosx | |
VESKIWI_BUILD_DIR=${PWD}/VES-Kiwi |
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
#!/bin/bash | |
OPENMP_DIR=/usr/local/llvm-omp | |
export CC=${OPENMP_DIR}/bin/clang | |
export CXX=${OPENMP_DIR}/bin/clang++ | |
export CMAKE_C_COMPILER=${CC} | |
export CMAKE_CXX_COMPILER=${CXX} | |
export PATH=${OPENMP_DIR}/bin:${PATH} | |
export C_INCLUDE_PATH=${OPENMP_DIR}/include:${C_INCLUDE_PATH} |
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
- (UIImage *)boxblurImage:(UIImage *)image boxSize:(int)boxSize | |
{ | |
CGImageRef originalImageRef = image.CGImage; | |
CGColorSpaceRef originalColorSpace = CGColorSpaceRetain(CGImageGetColorSpace(originalImageRef)); | |
if (_pixelBuffer == NULL) { | |
_pixelBuffer = malloc(CGImageGetBytesPerRow(originalImageRef) * CGImageGetHeight(originalImageRef)); | |
} | |
vImage_CGImageFormat inputImageFormat = |
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
#import <Foundation/Foundation.h> | |
#define randomNumber() (arc4random() % ((unsigned)1000000 + 1)) | |
@interface MainHelper : NSObject | |
+ (NSArray *)largeArrayCreate; | |
@end | |
@implementation MainHelper | |
+ (NSArray *)largeArrayCreate |
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
Eigen::Vector4f planeEq; | |
Eigen::Matrix4f modelViewMatrix; | |
Eigen::Vector4f nPrime = modelViewMatrix.inverse() * Eigen::Vector4f(planeEq(0), planeEq(1), planeEq(2), 1.f); | |
nPrime.normalize(); | |
Eigen::Vector3f clipPlaneNormalObjectSpace = Eigen::Vector3f(nPrime(0)/nPrime(3), nPrime(1)/nPrime(3), nPrime(2)/nPrime(3)); |
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
function [ Hough, theta_range, rho_range ] = naiveHough(I) | |
%NAIVEHOUGH Peforms the Hough transform in a straightforward way. | |
% | |
[rows, cols] = size(I); | |
theta_maximum = 90; | |
rho_maximum = floor(sqrt(rows^2 + cols^2)) - 1; | |
theta_range = -theta_maximum:theta_maximum - 1; | |
rho_range = -rho_maximum:rho_maximum; | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
var sock = null; | |
var ellog = null; | |
window.onload = function() { | |
var wsuri; |
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
//: Playground - noun: a place where people can play | |
import Darwin | |
import Foundation | |
let clockFaces: String = "๐๐๐๐๐๐๐๐๐๐๐๐" | |
let sortedClockFaces = Array(clockFaces.characters).sort() | |
let threeOClock = sortedClockFaces[2] | |
let aceOfSpades = "๐ก" |
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
import UIKit | |
import CoreGraphics | |
func imageFromPixelValues(pixelValues: [UInt8]?, width: Int, height: Int) -> CGImage? | |
{ | |
var imageRef: CGImage? | |
if pixelValues != nil { | |
let imageDataPointer = UnsafeMutablePointer<UInt8>(pixelValues!) | |
let colorSpaceRef = CGColorSpaceCreateDeviceGray() |