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
/** | |
* Hyperloop Module | |
* Copyright (c) 2015 by Appcelerator, Inc. and subject to the | |
* Appcelerator Platform Subscription agreement. | |
*/ | |
var Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); |
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
/** | |
* Hyperloop Module | |
* Copyright (c) 2015 by Appcelerator, Inc. and subject to the | |
* Appcelerator Platform Subscription agreement. | |
*/ | |
var Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); |
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 Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); | |
var UIColor = require('UIColor'); | |
var UIBezierPath = require('UIBezierPath'); | |
function DEGREES_TO_RADIANS(angle) { return (Number(angle) / 180.0 * Math.PI) }; | |
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 modelOne = Alloy.createModel('modelOne'); | |
var modelTwo = Alloy.createModel('modelTwo',{ | |
name: "Bert", | |
description: "is the man", | |
URL:"thisisawesome.com" | |
}); | |
Ti.API.info(modelTwo.config); | |
modelTwo.save(); |
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 child_process = require('child_process'), | |
async = require('async'); | |
var REGEXP_VERSIONS = /versions: ((?:(?:, )?[0-9]+\.[0-9]+\.[0-9]+)+)\..+currently: ([0-9]+\.[0-9]+\.[0-9]+)/; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
spawn: { | |
bump: { |
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
Alloy.createController(“login”).on(“submit”, function(e) { | |
doStuffWith(e) | |
}).getView().open(); |
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
/** | |
* UnComment Out this Code to change the properties of your square | |
$.square.setBackgroundColor("blue"); | |
$.square.setHeight(200); | |
$.square.setWidth(200) | |
*/ |
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
/** | |
* Helper Functions for Handlebars Templating engine | |
*/ | |
var fs = require('fs') | |
Arrow = require('arrow'), | |
watch = require('node-watch'); | |
/** |
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
<Alloy> | |
<Window class="container"> | |
<TableView id="myTableView"> | |
<TableViewRow height="100" with="100%"> | |
<View height="100" width="100%" layout="horizontal"> | |
<View id="indicator" borderRadius="12.5" backroundColor="green" height="25" width="25" /> | |
<Label id="myCustomLabel" left="10"> | |
This is a label that may have lots of text in | |
it, i can do this because i have overwritten the look of the TableViewRow | |
</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
/** | |
* This file would go under the app/lib directory | |
*/ | |
exports.createWindow = function(params){ | |
var win = Ti.UI.createWindow(params); | |
win.addEventListener("open", function(e){ |