Skip to content

Instantly share code, notes, and snippets.

View manojdcoder's full-sized avatar

Manojkumar Murugesan manojdcoder

  • Freelance App Developer
  • Montreal, QC
View GitHub Profile
@rborn
rborn / gist:63113167aace181f4f8b
Created October 14, 2014 12:12
Delete iOS8 simulator NSUserDefaults (Ti.App.Properties) on app uninstall
Delete this file
/Users/YOUR_USER/Library/Developer/CoreSimulator/Devices/SIM_UDID/data/Library/Preferences/APP_ID.plist
@marshall
marshall / activity1.js
Created February 22, 2011 17:24
Native Titanium + Android example code
var activity = Ti.Android.currentActivity;
var win = Ti.UI.currentWindow;
activity.addEventListener("create", function(e) {
var button = Ti.UI.createButton({title: "Hello world"});
button.addEventListener("click", function(e) {
activity.finish();
});
win.add(button);
});
@artanisdesign
artanisdesign / jshint_setup.md
Last active December 1, 2015 15:58
Install and setup JSHint Plugin in Titanium / Appcelerator Studio
@eric-hu
eric-hu / TiDocs.sh
Created February 14, 2013 11:36
Getting offline version of Titanium mobile docs on Ubuntu
#! /bin/sh
# Run this from the folder you want to be the parent of your docs
# By default, generated docs go into
# titanium_mobile/dist/apidoc/ti_mobile_docs/
#
# This can be changed below
git clone https://github.com/appcelerator/titanium_mobile.git
cd titanium_mobile
sudo apt-get install python-setuptools python-dev
@csdear
csdear / StatusBar
Created March 2, 2014 18:07
Notifications : StatusBar With CustomView
package course.examples.Notification.StatusBarWithCustomView;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@FokkeZB
FokkeZB / Analytics.md
Last active April 3, 2018 08:20
Options for analytics & crash reports for Titanium apps

Analytics & Crash options for Titanium

Service Analytics Performance Errors Titanium SDK Costs
New Relic Limited (users) HTTP HTTP Incomplete (no crashes) Free, $29/mo
Google Analytics Extensive Manual Native (no traces) Abandoned, Out-dated Free
Appcelerator Platform Extensive HTTP Native + JS Up-to-date Not public
Count.ly Extensive N/A N/A gitTio OSS, $125/mo
Flurry Extensive N/A Native gitTio, Marketplace Free
Crit
@jratcliff
jratcliff / ModelOverride.js
Last active April 18, 2018 19:39
Ext.data.Model overrides for nested/keyless associations in 6.x
/**
* Overrides for Ext.data.Model
*/
Ext.define('overrides.data.Model', {
override: 'Ext.data.Model',
privates: {
/**
* Override that adds support to check associations
*/
@anaisbetts
anaisbetts / analytics.js
Created January 7, 2015 20:47
Google Analytics in Atom Shell
// Pretend that cookies work
(function (document) {
var cookies = {};
document.__defineGetter__('cookie', function () {
var output = [];
for (var cookieName in cookies) {
output.push(cookieName + "=" + cookies[cookieName]);
}
return output.join(";");
});
@manumaticx
manumaticx / README.md
Last active July 11, 2020 14:07
Fading ActionBar in Titanium

Fading Actionbar

This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium

fadingactionbar

How this works

This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.

@joelwatson
joelwatson / data.csv
Created July 10, 2017 14:37
Simple example of a data-driven test using fast-csv
Make Model Price
Ford Escort 12000
Chevy Malibu 14000
Dodge Ram 20000