Moved to: https://github.com/FokkeZB/UTiL/tree/master/share
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 TiParse = function(options) { | |
| // need to convert this to requires | |
| Ti.include("parse-1.2.7.js"); | |
| Parse.localStorage = { | |
| getItem : function(_key) { | |
| return Ti.App.Properties.getObject(_key); | |
| }, | |
| setItem : function(_key, _value) { |
To make sure your lay-outs look pretty much the same on all devices, including the thousands of different Android resolutions and densities, it's always best to use the 'dp' unit. However, typing '10dp' instead of 10 is quite a pain. A pain you can easily take away by changing the default unit in your tiapp.xml.
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
| /* /Resources/app.js - Generated by Alloy, here to understand the flow */ | |
| var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone; | |
| Alloy.createController("index"); |
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
| "#wrapper": { | |
| // Set wrapper to adjust it's size to it's contents | |
| width: Ti.UI.SIZE, | |
| height: Ti.UI.SIZE, | |
| // Set stuff like borders and backgrounds on the wrapper | |
| backgroundColor: "red" | |
| } |
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
| /* | |
| 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 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
| /** | |
| * Handle Item Swipe | |
| * @param {Object} _event | |
| */ | |
| $.handleItemSwipe = function(_event) { | |
| var row = _event.source; | |
| var id = row.id; | |
| var controls = Alloy.createController("rowControls"); | |
| row.add(controls.wrapper); |
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
| // | |
| // See Slidedeck for more information | |
| // | |
| // http://www.slideshare.net/aaronksaunders/parse-appcelerator-titanium-the-easy-way-jan2013 | |
| // | |
| // Aaron K Saunders | |
| // Clearly Innovative Inc | |
| // | |
| // twitter : @aaronksaunders | |
| // blog : blog.clearlyinnovative.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
| <?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 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 Stephen Feather and other contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // |