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 pathToFile = "YOUR PATH TO FILE HERE"; | |
var baseurlAPI = "YOUR API BASEURL HERE"; | |
var file = Ti.Filesystem.getFile(pathToFile); | |
if(file.exists()){ | |
var xhr = Ti.Network.createHTTPClient({ | |
onload: function(e) { | |
Ti.API.log('success '+this.responseText); | |
}, | |
onerror: function(e) { |
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
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
import java.util.TimeZone; | |
import java.util.concurrent.TimeUnit; | |
// Get the "real" offset timezone in hours | |
public static int getTimeZone(){ | |
Calendar mCalendar = new GregorianCalendar(); | |
TimeZone mTimeZone = mCalendar.getTimeZone(); |
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
0410c9a121ae23a5e208edc379f64f7c8b1c28b46a62cd93cb77885631977c043acdcf299b5b1c3506100cfe752a7f6799d924d5cf645b225b0db19b5d058beae2 |
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 widget loader : https://github.com/FokkeZB/nl.fokkezb.loading | |
Alloy.Globals.loading = Alloy.createWidget("nl.fokkezb.loading"); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>tracking.js - face hello world</title> | |
<link rel="stylesheet" href="assets/demo.css"> | |
<script src="../build/tracking-min.js"></script> | |
<script src="../build/data/face-min.js"></script> |
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
(function constructor(){ | |
require('install')(); | |
})(); |