Skip to content

Instantly share code, notes, and snippets.

View hojberg's full-sized avatar
🔮
Building UIs for Unison

Simon Højberg hojberg

🔮
Building UIs for Unison
View GitHub Profile
<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>
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"
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;
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;
<%= 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>
# 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"]
# 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)
/*
=CONTROLS
=APPLICATION
=HEADER
=CONTENT
=FOOTER
*/
/* =CONTROLS
W.UI.SplitPanes.vert({
separatorClasses: 'separator',
panes: [{content: render('my/template'), classes: 'first-pane-class' },
{content: render('my/template2'), classes: 'second-pane-class' }]
});
testing gist