View gist:5e75cbb68231b0b24beac3ea6ff881db
def self.decorate_collection(collection)
collection.map { |q| self.class.new(q, loan) }
end
# Returns child questions that are applicable to the given loan. Sorts by requiredness, then position.
def children
@children ||= decorated_children.select(&:visible?).sort_by(&:reqpos)
end
def answered?
View members.md
  1. agaric.coop
  2. athandapps.com
  3. boston.techcollective.com
  4. brierwoodapps.com
  5. c4tech.com
  6. caravan.coop
  7. civsys.it
  8. colab.coop
  9. datasystems.coop
  10. designaction.org
View charter.md

Tech Co-op Network Charter - Draft

  • Purpose
    • To build and maintain an association of all interested technology-related worker cooperatives in North America
    • To maintain a website for this association, listing all members
    • To promote and coordinate other activities as it sees fit
  • Members
    • Members must
      • Have information technology as their principal area of business
      • Be co-operatives (either worker co-ops according to the USFWC definition, or other co-operative entities demonstrably adhering to the co-op principles)
View users.sql
[ActiveJob] [UserImportOperationJob] [4d7e239c-7f76-407b-901c-d2526a6a7224] User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`login` = 'user897' LIMIT 1
[ActiveJob] [UserImportOperationJob] [4d7e239c-7f76-407b-901c-d2526a6a7224] Mission Load (0.8ms) SELECT `missions`.* FROM `missions` WHERE `missions`.`id` = 9 LIMIT 1
[ActiveJob] [UserImportOperationJob] [4d7e239c-7f76-407b-901c-d2526a6a7224] User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'email_897@email.com' LIMIT 1
[ActiveJob] [UserImportOperationJob] [4d7e239c-7f76-407b-901c-d2526a6a7224] User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`login` = 'user897' LIMIT 1
[ActiveJob] [UserImportOperationJob] [4d7e239c-7f76-407b-901c-d2526a6a7224] User Exists (0.9ms) SELECT 1 AS one FROM `users` WHERE `users`.`persistence_token` = BINARY '2157724634a649f5655d68282d51decd56412bd7db5868de2c8c9e1f19b563fcafc7ef1a40581d4d75fc3f59bdcd9806c1d1daa0bf8061d49eb0bdf622262811' LIMIT 1
[ActiveJob] [UserI
View gist:8808653
module Jobs
def self.queued
Sidekiq::Stats.new.enqueued
end
def self.last_job_performed_at
Sidekiq.redis do |r|
int = r.get('last_job_perform_at')
int ? Time.at(int.to_i) : nil
View gist:6314207
window.Myember = Ember.Application.create();
Myember.Router.map(function () {
this.resource('kb_glyprobs', {path: '/glycemic-problems'}, function() {
this.route('page', { path: '/page/:page_id' });
});
});
Myember.KbGlyprobsPageRoute = Ember.Route.extend({
model: function(params) {
View db_find_orphans.rake
namespace :db do
desc "Find orphaned records. Set DELETE=true to delete any discovered orphans."
task :find_orphans => :environment do
found = false
model_base = Rails.root.join('app/models')
Dir[model_base.join('**/*.rb').to_s].each do |filename|