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
var returnData; // returned array of location data | |
if (OS_IOS) { | |
$.MapView.showAnnotations(annotationArray); | |
} | |
if (OS_ANDROID) { |
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
var dt = [{"address":"Caër, 27930 Normanville, France","longitude":1.172397,"latitude":49.066906},{"address":"Caër, 27930 Normanville, France","longitude":1.172397,"latitude":49.066906},{"address":"Same, Tanzania","longitude":37.750342,"latitude":-4.0666225},{"address":"Caerphilly CF83, UK","longitude":-3.218134,"latitude":51.578829},{"address":"Caerphilly CF83, UK","longitude":-3.218134,"latitude":51.578829},{"address":"Caerphilly CF83, UK","longitude":-3.218134,"latitude":51.578829},{"address":"Caerphilly CF83, UK","longitude":-3.218134,"latitude":51.578829},{"address":"Caër, 27930 Normanville, France","longitude":1.172397,"latitude":49.066906}]; | |
var flags = {}; | |
var dt = dt.filter(function(entry) { | |
if (flags[entry.address]) { | |
return false; | |
} | |
flags[entry.address] = true; | |
return true; | |
}); |
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
/* | |
* Open Titanium.UI.PICKER_TYPE_DATE | |
*/ | |
if (CONFIG.properties.type === 2) { | |
picker.showDatePickerDialog({ | |
value: new Date(), | |
callback: function(_event) { | |
var date = _event.value; |
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
Download and install android SDK | |
https://developer.android.com/studio/index.html | |
Install the NDK | |
From an open project, select Tools > Android > SDK Manager from the main menu. | |
Click the SDK Tools tab. | |
Check the boxes next to LLDB, CMake, and NDK, as shown in figure 1. | |
# run appc setup and appc info | |
Go back to the sdk manager in android studio and click launch standalone sdk manager select the correct version of the build tools insatll 23.0.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
#first make sure you have the JDK tools installed http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html | |
appc run -p android -T dist-playstore -K keystore/shakelocate -P sletnisy8289 -L shakelocate -O ~/Desktop | |
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
var permissions = require("mapPermissions"); | |
var RunLocation = false; | |
var search = { | |
latitude : 51.576339, | |
longitude : -3.216717, | |
heading : null | |
}; | |
/** |
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
# Obviously setup you ssh keys | |
git init | |
git remote add origin https://github.com/samueleastdev/appc.push.notifications.git | |
git add . | |
git commit -m "first commit" | |
git push --set-upstream origin master | |
# you will probabaly get a error at this stage due to the readme | |
git pull origin master --allow-unrelated-histories |
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
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools |
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
sudo chown -R $USER /usr/local | |
brew doctor | |
brew install node@4 | |
brew link --overwrite node@4 |
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
{ | |
"body" : $input.json('$'), | |
"headers": { | |
#foreach($header in $input.params().header.keySet()) | |
"$header": "$util.escapeJavaScript($input.params().header.get($header))" #if($foreach.hasNext),#end | |
#end | |
}, | |
"method": "$context.httpMethod", | |
"params": { |