I hereby claim:
- I am docherty on github.
- I am jamesdocherty (https://keybase.io/jamesdocherty) on keybase.
- I have a public key ASAO8N_p_rlB6j6lZUvYedNsLa7XMQgx5nXNjCtfCZIMUQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* AJAX call for parsing HTML | |
* | |
*/ | |
public function parse_html() { | |
// get content from textarea | |
$text = $_POST['content']; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CSS spinner</title> | |
<style> | |
.wrapper{ | |
background-color: #000; | |
display: flex; | |
align-items: center; |
// | |
// ViewController.swift | |
// sizingTest | |
// | |
// A Swift version of John Erck's SO answer: | |
// http://stackoverflow.com/a/30511982/131385 | |
// | |
import UIKit |
<?php | |
/** | |
* All custom functions should be defined in this class | |
* and tied to WP hooks/filters w/in the constructor method | |
*/ | |
class Custom_Functions { | |
// Custom metaboxes and fields configuration |
// JMD addition to stop release build errors caused by missing translations when running this command: | |
// $ ionic build --release android or $ cordova build --release android | |
android { | |
lintOptions { | |
disable 'MissingTranslation' | |
disable 'ExtraTranslation' | |
} | |
} |
// JMD iBeacon test | |
angular.module('beacon-test.controllers',[]) | |
.controller('MainCtrl', ['$scope', '$window', 'localNotification', function ($scope, $window, localNotification){ | |
//console.log('MainCtrl is loaded.'); | |
$scope.ifurl = ""; | |
// functions called by UI buttons | |
$scope.startMonitoring = function () { | |
for(i=0; i< $scope.beaconRegions.length; i++){ | |
var beaconRegion = $window.cordova.plugins.locationManager.Regions.fromJson($scope.beaconRegions[i]); |
If you're not using a library which requires the -ObjC linker flag, you can remove -ObjC from your project: Build Settings > Other Linker Flags > remove -ObjC or if you are using a library which requires that flag, you can add the Facebook SDK.
In addition: There is a problem if you remove the -ObjC linker switch. The libCordova.a library specifies some categories on NSString which will not get loaded if -ObjC is removed. A work around is to remove libCordova.a from the linked frameworks and add this to the Other Linker Flags build setting: