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.
#import "ViewController.h" | |
#import "MapBox.h" | |
@implementation ViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
RMMBTilesSource *offlineSource = [[RMMBTilesSource alloc] initWithTileSetURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"chernarus" ofType:@"mbtiles"]]]; |
@available(iOS 10.0, *)
import UserNotifications
NSUserNotification API Reference
UNNotificationSound API Reference
UNUserNotificationCenter API Reference
#!/bin/bash | |
# Adapted from http://stackoverflow.com/questions/24039470/xcode-6-ios-creating-a-cocoa-touch-framework-architectures-issues/26691080#26691080 | |
# and https://gist.github.com/cromandini/1a9c4aeab27ca84f5d79 | |
# Create a new aggregate target. | |
# For the automatically generated scheme, change its build config to "release". | |
# Ensure this target's "product name" build setting matches the framework's. | |
# Add a run script with `source "${PROJECT_DIR}/path_to_this_script` |
# Merge Script | |
# 1 | |
# Set bash script to exit immediately if any commands fail. | |
set -e | |
# 2 | |
# Setup some constants for use later on. | |
FRAMEWORK_NAME="${PROJECT_NAME}" | |
/* - woo cat toggling elements, injected via jQuery - */ | |
/* make list item be relative, to be able to position toggle within this item, if desired */ | |
#sidebar .widget_product_categories ul.product-categories > li.cat-parent { | |
position: relative; | |
} | |
/* the new toggle element wrapper, which is added via jQuery */ | |
#sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle { | |
cursor: pointer; | |
display: inline-block; |
import Foundation | |
/** | |
Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.) | |
*/ | |
extension JSONSerialization { | |
static func loadJSON(withFilename filename: String) throws -> Any? { | |
let fm = FileManager.default |
"use strict"; | |
const functions = require("firebase-functions"); | |
const { WebhookClient } = require("dialogflow-fulfillment"); | |
const { Card, Suggestion } = require("dialogflow-fulfillment"); | |
const admin = require("firebase-admin"); | |
admin.initializeApp({ | |
credential: admin.credential.applicationDefault(), | |
databaseURL: 'https://<YOUR-PROJECT-ID>.firebaseio.com' |
#!/bin/sh | |
if [ -z "$XCODE_VERSION_CORRECT" ] | |
then | |
export SUDO_ASKPASS="${PROJECT_DIR}/../scripts/askpass.sh" | |
fi | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
# make sure the output directory exists |
# Xcode 10.2 | |
# please use within Xcode environment (Build Phases -> Run Script or Scheme -> Post Actions) | |
xcodebuild -version | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
# make sure the output directory exists | |
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
env > env.txt | |
# Step 1. Build Device and Simulator versions | |
xcodebuild -project "${PROJECT_NAME}.xcodeproj" -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |