Skip to content

Instantly share code, notes, and snippets.

View ttdonovan's full-sized avatar

Tanner Donovan ttdonovan

  • San Francisco, CA
View GitHub Profile
$ rvm install 1.8.7 --debug | tee | pbcopy
[0;32m<i> Installing Ruby from source to: /Users/tanner/.rvm/ruby-1.8.7-p174 </i> 
[0;32m<i> Downloading ruby-1.8.7-p174, this may take a while depending on your connection... </i> 
[0;35m<d> Fetching ruby-1.8.7-p174.tar.gz </d> 
[0;35m<d> No archive or no MD5, downloading </d> 
[0;32m<i> Extracting ruby-1.8.7-p174 ... </i> 
[0;35m<d> Executing: tar xzf /Users/tanner/.rvm/archives/ruby-1.8.7-p174.tar.gz -C /Users/tanner/.rvm/src </d> 
[0;32m<i> Configuring ruby-1.8.7-p174 using --enable-shared --disable-pthread , this may take a while depending on your cpu(s)... </i> 
[0;35m<d> Executing: ./configure --prefix=/Users/tanner/.rvm/ruby-1.8.7-p174 --enable-shared --disable-pthread </d> 
[0;32m<i> Compiling ruby-1.8.7-p174, this may take a while, depending on your cpu(s)... </i> 
fetchRecords: function(store, fetchKey, params) {
var ret = [], idx, len, id, recordType, rec, url, request, datasource ;
datasource = this ;
len = params.length ;
for(idx = 0; idx < len; idx++) {
storeKey = params[idx] ; // storeKey
id = store.idFor(storeKey) ; // record id
recordType = store.recordTypeFor(storeKey) ;
Sample.TireView = SC.View.design({
childViews: ['mangpartLabel','mangpartField','partLabel','partField','partwhsLabel','partwhsField','makeLabel','makeField','modelLabel','modelField','tdateLabel','tdateField','serialnoLabel','serialnoField','metertypeLabel','metertypeField','lifemLabel','lifemField','metertype2Label','metertype2Field','lifem2Label','lifem2Field','treadLabel','treadField','addcostLabel','addcostField','priceLabel','priceField','tiresizeLabel','tiresizeField','overdiamLabel','overdiamField','availLabel','availField','capperLabel','capperField','inactLabel','inactField','loadsingLabel','loadsingField','speedLabel','speedField','loaddualLabel','loaddualField','mindualspLabel','mindualspField','bufradiusLabel','bufradiusField','basewidthLabel','basewidthField','steerLabel','steerField','driveLabel','driveField','trailerLabel','trailerField','recappedLabel','recappedField'],
mangpartLabel: SC.LabelView.design({ layout: { left:0, top:0, width:200, height:20 }, value: 'Use Managed Part' }),
mang
Sample.mainPage = SC.Page.design({
mainPane: SC.MainPane.design({
childViews: 'scrollView'.w(),
scrollView: SC.ScrollView.design({
layout: { centerX:0, centerY:0, width:800, height:400 },
autohidesHorizontalScroller: NO,
autohidesVerticalScroller: NO,
contentView: SC.View.design({
CDWeb.requestController = SC.DataSource.create(
/** @scope CDWeb.requestController */ {
retrieveRecords: function(store, storeKeys) {
var storeKey = storeKeys[0] ; // only the first
var id = store.idFor(storeKey) ;
var rec = store.find(CDWeb.Data, id) ;
$.ajax({
type: 'GET',
// ==========================================================================
// CDWeb.ObjectSelectorController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
CDWeb.ObjectSelectorFieldView = SC.View.extend(
/** @scope CDWeb.ObjectSelectorFieldView.prototype */{
requestUrlBinding: 'CDWeb.objectSelectorController.requestUrl',
requestParamsBinding: 'CDWeb.objectSelectorController.requestParams',
render: function(context, firstTime) {
if (firstTime) {
context.push('<input type="text" style="width:100%" />') ;
}
// ==========================================================================
// CDWeb.BreadcrumbsController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
CDWeb.BreadcrumbsView = SC.View.extend({
crumbs: [],
crumbsBinding: "CDWeb.breadcrumbsController.arrangedObjects",
tagName: 'ul',
layout: { left:0, right:0, top: 0, bottom:0 },
crumbsDidChangeObserver: function() {
console.log('crumbsDidChange', t = this);
// ==========================================================================
// OrionFw.ManyToManyController
// ==========================================================================
require('core');
OrionFw.ManyToManyController = SC.Controller.extend({
init: function() {
sc_super();