Skip to content

Instantly share code, notes, and snippets.

/***
Delivery Schedule Behaviors
***/
var DeliverySchedule = $.klass({
SCHEDULE_CYCLE: 8,
MONTHS: ["January","February","March","April","May","June","July",
"August","September","October","November","December"],
initialize: function() {
// initialize future delivery depending on initial option
** [out :: stage.assessingparenting.com] -> 0.0036s
** [out :: stage.assessingparenting.com] == ChangeVariantSchema: migrated (0.0328s) ===================================
** [out :: stage.assessingparenting.com]
** [out :: stage.assessingparenting.com] == MoveRaceGenderToDemographics: migrating ===================================
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :race)
** [out :: stage.assessingparenting.com] -> 0.0012s
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :race_other)
** [out :: stage.assessingparenting.com] -> 0.0006s
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :gender)
** [out :: stage.assessingparenting.com] -> 0.0006s
@entryway
entryway / gist:69445
Created February 24, 2009 06:13 — forked from jsierles/gist:29838
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.
#
# required for passenger since cron has no environment
ENV['HTTPD'] = 'httpd'
MEM_LIMIT = ARGV[0] || 500
require 'rubygems'
require_gem 'activerecord'
require '/var/www/hoosier/app/models/payment_method'
#Connect to the database
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "****",
:password => "****",