Instructions on how to setup a secured Jenkins CI on a Mac.
All of these operations are done with your admin user.
Install the command line developer tools.
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| 'use strict'; | |
| /* | |
| * Based on work done by Nikhil Nigade (@dezinezync) https://gist.github.com/dezinezync/5487119 | |
| */ | |
| (function () { | |
| var DEFAULT_ELEMENT = document.documentElement.scrollTop ? document.documentElement : document.body; | |
| var REQUEST_ANIMATION_FRAME = window.requestAnimationFrame || window.mozRequestAnimationFrame || | |
| window.webkitRequestAnimationFrame || window.oRequestAnimationFrame; |
| // | |
| // LogEntriesLogger.h | |
| // lcinventories | |
| // | |
| // Created by Chris Richards on 17/11/2014. | |
| // Copyright (c) 2014 Yellow Feather Ltd. All rights reserved. | |
| // | |
| #import "DDLog.h" |
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
| -(UIImage*)mmg_imageScaledToFitSize:(CGSize)fitSize | |
| { | |
| // Create a vImage_Buffer from the CGImage | |
| CGImageRef sourceRef = self.CGImage; | |
| vImage_Buffer srcBuffer; | |
| vImage_CGImageFormat format = { | |
| .bitsPerComponent = 8, | |
| .bitsPerPixel = 32, | |
| .colorSpace = NULL, | |
| .bitmapInfo = (CGBitmapInfo)kCGImageAlphaFirst, |
| extension NSBezierPath { | |
| /// A `CGPath` object representing the current `NSBezierPath`. | |
| var cgPath: CGPath { | |
| let path = CGMutablePath() | |
| let points = UnsafeMutablePointer<NSPoint>.allocate(capacity: 3) | |
| if elementCount > 0 { | |
| var didClosePath = true |
| ## | |
| ## Build an Appcelerator Android Module | |
| ## Then copy it to the default module directory | |
| ## | |
| ## (c) Napp ApS | |
| ## Mads Møller | |
| ## | |
| ## HOW TO GUIDE |
| - (void)viewWillAppear:(BOOL)animated { | |
| [super viewWillAppear:animated]; | |
| [[NSNotificationCenter defaultCenter] | |
| addObserver:self selector:@selector(keyboardWillShow:) | |
| name:UIKeyboardWillShowNotification object:nil]; | |
| [[NSNotificationCenter defaultCenter] | |
| addObserver:self selector:@selector(keyboardWillHide:) | |
| name:UIKeyboardWillHideNotification object:nil]; | |
| } |