Public Gists by mdarby

Gravatar
Fri Nov 06 11:28:21 -0800 2009
1
2
3
// Default class properties
Box.height = 12;
Box.offset = Box.height * 2;
Gravatar
Tue Sep 08 09:43:30 -0700 2009
1
2
3
# This code is taken from the "bills in progress" report
# It takes projected invoicing calculations and applies them to an array of Jobs.
 
Gravatar
Fri Sep 04 15:29:32 -0700 2009
1
2
3
before "deploy", "deploy:check_revision"
 
namespace :deploy do
Gravatar
Sat Aug 22 16:17:44 -0700 2009
1
2
3
#!/bin/sh
 
export RUBY_HEAP_MIN_SLOTS=500000
Gravatar
Tue Aug 18 11:32:28 -0700 2009
1
2
3
  it "should talk about challenges" do
    do_get
    response.should include_text("challenges_faced")
Gravatar
Sun Aug 16 18:04:23 -0700 2009
1
2
3
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
Gravatar
Sun Aug 16 18:04:04 -0700 2009
1
2
3
Before:
 
+----------------------+-------+-------+---------+---------+-----+-------+
Gravatar
Sun Aug 16 18:03:42 -0700 2009
1
2
class CrapsControllers < ResourceController::Base
end
Gravatar
Sun Aug 16 18:03:25 -0700 2009
1
2
3
class CrapsController < ApplicationController
  # GET /craps
  # GET /craps.xml
Gravatar
Tue Aug 04 11:27:23 -0700 2009
1
2
3
class PollsController < ApplicationController
  resource_controller
  actions :all, :except => [:show]
Gravatar
Fri Jul 03 14:51:50 -0700 2009
1
2
3
class List < ActiveRecord::Base
 
belongs_to :user
Gravatar
Thu Jun 25 11:54:40 -0700 2009
1
2
3
      @future_hours = groups.inject([]) do |group_stack, emp_group|
        conditions = []
        conditions << "employee_group_id = #{emp_group.id}"
Gravatar
Fri May 08 11:40:00 -0700 2009
1
2
3
# CSS
.about_me{
  text-align:justify
Gravatar
Tue Apr 14 03:28:11 -0700 2009
1
2
3
classes = %w{Foo Bar Baz}
 
objects = classes.inject([]) do |s, c|
Gravatar
Thu Apr 02 10:15:46 -0700 2009
1
2
3
class Document < ActiveRecord::Base
 
  has_attachment :storage => :file_system,
Gravatar
Thu Mar 19 10:47:24 -0700 2009
1
2
3
# What is 'x', and what is 'hh'?
# How do I find "hours"?
 
Gravatar
Tue Feb 10 10:14:14 -0800 2009
1
2
3
diff --git a/app/helpers/submittals_helper.rb b/app/helpers/submittals_helper.rb
index 75ed617..e09b039 100755
--- a/app/helpers/submittals_helper.rb
Gravatar
Sat Feb 07 10:02:06 -0800 2009
1
2
3
if RAILS_ENV != 'development'
  require 'cache_money'
 
Gravatar
Wed Feb 04 06:27:40 -0800 2009
1
2
3
select {
  font-size:1em;
}
Gravatar
Thu Jan 29 08:42:17 -0800 2009
1
2
3
alias gb='git branch'
alias gc='git commit -a'
alias gca='git commit -va'