Skip to content

Instantly share code, notes, and snippets.

@mschmulen
mschmulen / sapSample.js
Created October 17, 2012 21:16
sapSample
//app.js
var winsap = Titanium.UI.createWindow({ title:'sap', backgroundColor:'#fff', url:'sap.js' });
var tabsap = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'sap', window:winsap });
tabGroup.addTab(tabsap);
//IOS developers
sap.js = https://gist.github.com/3421560
@mschmulen
mschmulen / AppDelegate.cs
Created November 13, 2012 19:05 — forked from conceptdev/AppDelegate.cs
Access image metadata with (eg. GPS, EXIF data)
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace AccessImageMetadata
{
public class Application
@mschmulen
mschmulen / app.js
Created November 13, 2012 19:08
aws queu
var AWS;
var queueName = 'TestQueue110512';
var awsAccountId = Ti.App.Properties.getString('aws-account-id');
function pretty(key, value) {
if ((key == 'source') || (key == 'type')) {
return undefined;
} else {
return value;
@mschmulen
mschmulen / app.js
Created November 19, 2012 17:40
Navibridge Sample
var NAVIBRIDGE = require('ti.navibridge');
// ApplicationId must be set before adding POIs NaviBridge
// See the documentation for how to get an AppicationId
// NAVIBRIDGE.setApplicationId('<< YOUR APPLICATION ID HERE >>');
var win = Ti.UI.createWindow({ title:"navibridge" });
var openButton = Ti.UI.createButton({ top:5, title:'Open NaviBridge', height:40, width:200 });
var installButton = Ti.UI.createButton({ top:50, title:'Install NaviBridge', height:40, width:200 });
@mschmulen
mschmulen / gist:4657571
Created January 28, 2013 17:49
SAP oData Write
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
module.exports = new function () {
var finish;
var valueOf;
@mschmulen
mschmulen / gist:5035322
Created February 26, 2013 02:31
SAP Titanium Write Example
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
module.exports = new function () {
var finish;
var valueOf;
@mschmulen
mschmulen / gist:5035339
Created February 26, 2013 02:34
SAP Titanium Read Example
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';
@mschmulen
mschmulen / ApplicationTabGroup.js
Created June 10, 2013 20:36
StrongLoop AppStore
function ApplicationTabGroup(Window) {
//Require our new windows
WindowAppListingNodeApps = require('ui/handheld/WindowAppListingNodeApps');
WindowHome = require('ui/handheld/WindowAppHome');
//create module instance
var self = Ti.UI.createTabGroup();
(function (strongloop) {
strongloop.dataCache = [{
title: 'Loopers App',
url: 'appDetail.js',
url_scheme: 'nbcipad',
hasChild: true,
appID: '284910350',
var defaultColorBlue = '#035385';
var defaultColorRed = '#9a0707';
var rowColor = '#EBEBEB';
var selectedRowColor = '#4B4B4B';
var backgroundColor = '#4B4B4B';
var defaultColor = defaultColorRed;
function ApplicationWindow(title) {