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
/* SET THE HOST AND PORT OF WORDPRESS | |
* *********************************************************/ | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; |
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
/** @author Kevin Kowalewski */ | |
public class RootUtil { | |
public static boolean isDeviceRooted() { | |
return checkRootMethod1() || checkRootMethod2() || checkRootMethod3(); | |
} | |
private static boolean checkRootMethod1() { | |
String buildTags = android.os.Build.TAGS; | |
return buildTags != null && buildTags.contains("test-keys"); | |
} |
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
Parse.Cloud.define("getrating", function(request, response) { | |
//Query class appointments | |
var query = new Parse.Query("appointments"); | |
//Query column trainer in appointments pass trainerid object | |
query.equalTo("trainer", request.params.trainerid); | |
query.find({ | |
success: function(results) { | |
var sum = 0; | |
for (var i = 0; i < results.length; ++i) { | |
//Get the sum of the field rate for the trainer |
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
#First you'll need to Signup for AWS/EC2 and generate a key pair. Google it, there should be plenty of | |
#tutorials. | |
#Next, create an instance using the AWS Management Console and log into it using your key pair. | |
#You can find the AMI's here https://help.ubuntu.com/community/EC2StartersGuide | |
#I picked a 64bit 10.04 LTS AMI in US-East. | |
#Install node's perquisites (or those that aren't the default ubuntu LTS ami): | |
sudo apt-get update | |
sudo apt-get install build-essential libssl-dev |
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
source 'https://github.com/CocoaPods/Specs.git' | |
platform :ios, '8.0' | |
use_frameworks! | |
pod 'Alamofire', '~> 3.0' | |
pod 'Fabric' | |
pod 'Crashlytics' | |
pod 'Parse', '~>1.11.0' | |
pod 'FBSDKCoreKit' | |
pod 'FBSDKLoginKit' |
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
#!/usr/bin/env bash | |
# Remove this if you want deployment for every pull request. | |
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then | |
echo "This is a pull request. No deployment will be done." | |
exit 0 | |
fi | |
# This will only deploy if your main branch is develop. | |
if [[ "$TRAVIS_BRANCH" != "develop" ]]; then |
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
language: android | |
jdk: oraclejdk7 | |
env: | |
matrix: | |
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a | |
sudo: required | |
android: | |
components: |
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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import os | |
import sys | |
import httplib | |
import urllib | |
import urlparse | |
import json |
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
Executing tasks: [:Forcedroid:generateDebugSources, :Forcedroid:generateDebugAndroidTestSources, :forcedroid:libs:SalesforceSDK:generateDebugSources, :forcedroid:libs:SalesforceSDK:generateDebugAndroidTestSources] | |
Configuration on demand is an incubating feature. | |
WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.2 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-log |
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
Executing tasks: [:forcedroid:libs:SalesforceSDK:generateDebugSources, :forcedroid:libs:SalesforceSDK:generateDebugAndroidTestSources, :forcedroid:generateDebugSources, :forcedroid:generateDebugAndroidTestSources] | |
Configuration on demand is an incubating feature. | |
WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.2 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android. | |
In case of problem, please repackage it with jarjar to change the class packages | |
WARNING: Dependency commons-log |