Skip to content

Instantly share code, notes, and snippets.

@mschmulen
mschmulen / gist:3530106
Created August 30, 2012 14:54
Titanium ACS Notifications
var UIWinNotifications = (function() {
var CLOUD = require('ti.cloud');
CLOUD.debug = true;
var API = {};
API.APP = null;
API.name = "Notifications";
API.icon = "/KS_nav_views.png";
@mschmulen
mschmulen / .gitignore
Created August 22, 2012 18:41
Titanium project .gitignore
/build
/modules
/.DS_Store
/.settings
/.project
.DS_Store*
/Resources/.DS_Store*
build.log
@mschmulen
mschmulen / .bash_profile
Created August 18, 2012 15:16
.bash_profile ( some of my .bash settings )
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
#ANDROID exports
PATH=/Users/mschmulen/android-sdk-macosx/tools:$PATH
PATH=/Users/mschmulen/android-sdk-macosx/platform-tools:$PATH
PATH=/usr/local/bin/node:$PATH
PATH=/usr/local/bin/npm:$PATH
export PATH
@mschmulen
mschmulen / UIWinCheatSheetAndroid4_1.js
Created August 7, 2012 13:48
UIWinCheatSheetAndroid4_1
var UIWinCheatSheetAndroid4_1 = (function() {
var STYLE = require('ui/STYLE');
var UTILS = require('utils/utils');
var MODEL = require('model/inventory');
var CLOUD = require('ti.cloud');
CLOUD.debug = true;
var API = {};
API.APP = null;
@mschmulen
mschmulen / UIWinCheatSheetIOS6.js
Created August 7, 2012 13:48
UIWinCheatSheetIOS6
var UIWinCheatSheetIOS6 = (function() {
var STYLE = require('ui/STYLE');
var UTILS = require('utils/utils');
var MODEL = require('model/inventory');
var CLOUD = require('ti.cloud');
CLOUD.debug = true;
var API = {};
API.APP = null;
@mschmulen
mschmulen / SapTitanium.js
Created July 30, 2012 15:24
Connect to SAP via NetWeaver Gateway oData in a Titanium app using Appcelerator SAP Module
var uiODataSimple = (function() {
var API = {};
API.DataJS = require('ti.sap.odata');
API.collectionCache = null;
API.useXMLNotJSON = true;
API.dataType = API.useXMLNotJSON ? 'application/atom+xml' : 'application/json';
API.queryString = '=xml';
@mschmulen
mschmulen / app.js
Created September 2, 2011 20:44 — forked from dawsontoth/app.js
Rate my app in Appcelerator Titanium Mobile
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {
@mschmulen
mschmulen / #{fileName}
Created July 27, 2011 16:55
This is a test description
forTheDemo
@mschmulen
mschmulen / #{fileName}
Created July 22, 2011 19:57
This is a test description
friday
friday
friday
// inspired on http://www.joelpeterson.com/clock/
// and most of the code taken from there as well
var win = Ti.UI.createWindow({
orientationModes: [3, 4]
});
var clock_bg = Ti.UI.createView({
backgroundColor: '#444444',
top: 20,
left: 20,