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
YUI.add('models:my_model', function (Y, NAME, __imports__, __exports__) { | |
"use strict"; | |
var MyOtherModel = __imports__['models/my_other_model']['default']; | |
var MyModel = Y.Base.create('models:myModel', | |
MyOtherModel | |
[], | |
{ | |
// .. some implementation | |
}, |
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
var DocumentRouteTarget = { | |
show: function () { | |
// this function is called for /documents/:id urls like /documents/123 | |
} | |
}; |
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
<table width="100%"> | |
<tr> | |
<td width="100">Johnny Walker</td> | |
<td>Woop dii doop</td> | |
</tr> | |
<tr> | |
<td>Brian Wilcox</td> | |
<td>Woop dii doop</td> | |
</tr> | |
</table> |
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
kasesView: SC.ScrollView.design({ | |
hasHorizontalScroller: NO, | |
classNames: "kasesView", | |
layout: { top: 60, bottom: 0, left: 0, right: 0 }, | |
contentView: SC.ListView.design({ | |
contentBinding: 'Pitcrew.kasesController.arrangedObjects', | |
selectionBinding: 'Pitcrew.kasesController.selection', | |
classNames: 'kaseItem', | |
contentValueKey: "subject" |
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
package com.zecure.client.presenters; | |
import com.google.gwt.http.client.Request; | |
import com.google.gwt.http.client.RequestBuilder; | |
import com.google.gwt.http.client.RequestCallback; | |
import com.google.gwt.http.client.RequestException; | |
import com.google.gwt.http.client.Response; | |
import java.util.ArrayList; | |
import com.zecure.client.views.SalesListView; |
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
package com.zecure.client.presenters; | |
import com.google.gwt.http.client.Request; | |
import com.google.gwt.http.client.RequestBuilder; | |
import com.google.gwt.http.client.RequestCallback; | |
import com.google.gwt.http.client.RequestException; | |
import com.google.gwt.http.client.Response; | |
import com.google.gwt.user.client.ui.Label; | |
import java.util.ArrayList; |
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
<%= header %> | |
<h2 class="h1_1">Affiliates</h2> | |
<div class="c1_1"> | |
<table cellspacing="0" cellpadding="0" class="default_table" width="100%"> | |
<thead> | |
<tr> | |
<th>Affiliate</th> | |
<th>Last signup</th> | |
<th>Approved by</th> |
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
# Delete duplicates | |
rows = [] | |
res.each do |row| | |
# skip if already saved in new array | |
next if rows.detect { |r| r[3] == row[3] } | |
# Find multiple instances sale | |
rows_with_same_sale_id = res.select { |r| r[3] == row[3] } | |
# create an array with only the markers ie. ["I", "N", "E"] |
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
# config/initializers/delayed_job | |
Delayed::Job.destroy_failed_jobs = false | |
silence_warnings do | |
Delayed::Job::max_attempts = 3 | |
Delayed::Job::max_run_time = 2.minutes | |
end | |
# running tests error | |
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/checkout_controller_test.rb" "test/functional/signup_controller_test.rb" "test/functional/report_controller_test.rb" | |
/var/www/railsdav.payment.dk/zecure_ssl/vendor/rails/activerecord/lib/active_record/base.rb:1964:in `method_missing': undefined method `max_attempts=' for #<Class:0x2aaedad74a70> (NoMethodError) |
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
W.UI.SplitPanes.vert({ | |
separatorClasses: 'separator', | |
panes: [{content: render('my/template'), classes: 'first-pane-class' }, | |
{content: render('my/template2'), classes: 'second-pane-class' }] | |
}); |
OlderNewer