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
find . -type f | grep -v node_modules | grep -v modules | grep -v .git | grep -v .json | grep .js | xargs -I{} perl -pi -e 'print "/*\n * Copyright (c) 2011-2014 YY Digital Pty Ltd. All Rights Reserved.\n * Please see the LICENSE file included with this distribution for details.\n */\n\n" if $. == 1' {} |
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 search = Titanium.UI.createSearchBar({ | |
barColor:'#000', | |
showCancel:true, | |
height:43, | |
top:0 | |
}); | |
var tableView = Titanium.UI.createTableView({ | |
top:40, | |
data:{title:'Please perform a search'} |
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
/* | |
This goes in your Info.plist | |
it's been a while since I added this functionality so I'm not sure what was added and what was already there, you may already have some pieces of the code. | |
When you tap and hold a mail attachment your app will show up in the list of associated apps and switch to your app when selected. | |
*/ | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> |
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
// console dump of sample returned object | |
I/TiAPI ( 244): (kroll$4: app://app.js) [797,3312] Object | |
I/TiAPI ( 244): { | |
I/TiAPI ( 244): weatherData => Object | |
I/TiAPI ( 244): { | |
I/TiAPI ( 244): forecastInfo => Object | |
I/TiAPI ( 244): { | |
I/TiAPI ( 244): city => 'Bydgoszcz, Kuyavian-Pomeranian Voivodeship', |
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
//include StackMob & credentials module | |
var credentials = require('credentials').C; | |
var stackmob = require('stackmob-module.min'); | |
//create StackMob Client | |
var client = new stackmob.Client(credentials.STACKMOB_APP_NAME, credentials.STACKMOB_PUBLIC_KEY, credentials.STACKMOB_PRIVATE_KEY, credentials.STACKMOB_USER_OBJECT_NAME); | |
//login the user | |
client.login({ | |
'username' : "aaron-B1FBD26C-89B1-49E3-B4C4-F319493324DB", |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>New Appcelerator Cloud Services Project</title> | |
<script type="text/javascript"> | |
function onBodyLoad() { |
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
DialogWindow = function(message, type){ | |
// Default params | |
var message = message || "How about you add some message to this? :)"; | |
var type = type || "error"; | |
var window = Titanium.UI.createWindow({ | |
width: 320, | |
height: 44, | |
top: 44, |
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
<?php | |
/* | |
Usage: http://example.com/webhook.php?repo=repo-name | |
Obviously, for security, a different file name (or at least a different query string variable name) should be used. | |
*/ | |
$path = 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
/* | |
WildText CommonJS module for Appcelerator Titanium | |
Create dynamic gradient filled text in your iOS Applications using this simple module. | |
@params : text - String. The text for your label | |
font - Font. Specify the font attributes for the label (defaults to standard size, weight and family), | |
backgroundGradient - BackgroundGradient. Specify your backgroundGradient object (defaults to White to Black linear gradient), | |
Top - Integer. Top property for your label, | |
Left - Integer. Left Property for your Label, |
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
/* /Resources/app.js - Generated by Alloy, here to understand the flow */ | |
var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone; | |
Alloy.createController("index"); |
OlderNewer