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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE us-patent-grant SYSTEM "us-patent-grant-v45-2014-04-03.dtd" [ ]> | |
<us-patent-grant lang="EN" dtd-version="v4.5 2014-04-03" file="USD0723366-20150303.XML" status="PRODUCTION" id="us-patent-grant" country="US" date-produced="20150217" date-publ="20150303"> | |
<us-bibliographic-data-grant> | |
<publication-reference> | |
<document-id> | |
<country>US</country> | |
<doc-number>D0723366</doc-number> | |
<kind>S1</kind> | |
<date>20150303</date> |
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
fs.exists('data/ipg150303.xml', function (exists) { | |
console.log("exists" + exists); | |
if (exists) { | |
console.log("exists" + exists); | |
fs.readFile('data/ipg150303.xml', 'utf8', function (err, data) { | |
if (err) { | |
return console.log(err); | |
} | |
data = data.split('<?xml version="1.0" encoding="UTF-8"?>'); |
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
This gist is only for Android. | |
If you would like launch native apps | |
on iPhone, iPad, you can find information about it in Appcelerator Docs: | |
-https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.canOpenURL-method.html | |
-https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.openURL-method.html | |
More info about iOS URL Schemes: http://handleopenurl.com/ |
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
/* | |
Copyright 2011-2013 Abdulla Abdurakhmanov | |
Original sources are available at https://code.google.com/p/x2js/ | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
var win = Titanium.UI.createWindow({ | |
backgroundColor : 'red', | |
}); | |
// get refernce to the current window | |
var queslabel = Titanium.UI.createLabel({ | |
text : 'Question', | |
height : 50, | |
color : '#000000', | |
font : { |
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
<?php | |
// Put your device token here (without spaces): | |
$deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
// Put your private key's passphrase here: | |
$passphrase = 'xxxxxxx'; | |
// Put your alert message here: | |
$message = 'A push notification has been sent!'; |
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
var args = arguments[0] || {}; | |
var buttonNames = args.buttonNames; | |
$.dialog.buttonNames = buttonNames; | |
function doClick(e) { | |
alert('You clciked on ' + buttonNames[e.index]); | |
}; | |
$.dialog.show(); |
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
if(!Ti.App.Properties.hasProperty('notificationCount')) { | |
Ti.App.Properties.setInt('notificationCount', 0); | |
} else { | |
Ti.App.Properties.removeProperty('notificationCount'); | |
var activity = Ti.Android.currentActivity(); | |
var intent = Ti.Android.createIntent({ | |
action : Ti.Android.ACTION_MAIN, | |
// you can use className or url to launch the app | |
// className can be found by looking in the build folder |
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
var self = Ti.UI.createWindow({ | |
backgroundColor : '#fff' | |
}); | |
var xhr = Titanium.Network.createHTTPClient(); | |
var aTableView = Ti.UI.createTableView(); | |
xhr.onload = function() { | |
//Ti.API.info('http://appc.mrtechnologybd.com/node.xml ' + this.responseXML + ' text ' + this.responseText); | |
var doc = this.responseXML.documentElement; |
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
/** | |
* I'm creating a simple twitter to learn Titanium. What I have a simple Twitter Login. | |
* For Titanium Tweet Post i have done the following | |
* go to https://dev.twitter.com/apps | |
it will ask for login | |
Create Application Screen | |
fill the form to create application |