This file contains 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
/** | |
* @providesModule ActiveResource | |
**/ | |
'use strict'; | |
var _ = require('underscore'); | |
export default class ActiveResource { |
This file contains 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
'use-strict' | |
var React = require('react-native'); | |
var { | |
Dimensions | |
} = React; | |
var DimensionsHelper = { | |
init : function() { | |
this.SCREEN_WIDTH = Dimensions.get("window").width; |
This file contains 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
class Warehouse < ActiveRecord::Base | |
# Data Warehousing AR | |
# - create env_warehouse definitions in database.yml | |
# - RAILS_ENV=env_warehouse rake db:schema:load | |
# - Warehouse.archive_all on some interval (daily, hourly, etc) | |
# - Truncate un-needed data from prod database! | |
if ENV["DATABASE_WAREHOUSE_URL"].present? # for heroku since it overwrites the database.yml | |
establish_connection ENV["DATABASE_WAREHOUSE_URL"] |
This file contains 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
app.views.ProductsListMine = Ext.extend(Ext.Panel, { | |
layout: 'card', | |
scroll: 'vertical', | |
fullscreen: true, | |
dockedItems: [ | |
{ | |
xtype: "toolbar", | |
title: "My Products", | |
items: [ | |
{ |