Skip to content

Instantly share code, notes, and snippets.

View aroop's full-sized avatar

Ajay Guthikonda aroop

View GitHub Profile
@aroop
aroop / application_controller.rb
Created June 16, 2011 18:37 — forked from dhh/gist:1014971
Use concerns to keep your models manageable
class WmsWebCma::ApplicationController < ActionController::Base
protect_from_forgery
before_filter :set_locale
helper_method :current_agent, :company_branding
def current_agent
@current_agent ||= (session[:current_agent] ? Agent.find(session[:current_agent]["uuid"]) : nil)
end
class IosCustomTabBar
constructor: (options) ->
@tabGroup = options.tabGroup
@backgroundImage = options.backgroundImage
@initializeUI()
initializeUI: ->
@createCustomTabBar()
@aroop
aroop / post.js
Created January 28, 2013 20:29 — forked from aaronksaunders/post.js
//
// blog.clearlyionnovative.com
// twitter: @aaronksaunders
//
// Model file for integration Appcelerator Titanium Alloy with Wordpress JSON Plugin
//
exports.definition = {
config : {
"columns" : {},
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';