Public Gists by holtonma

Gravatar
Mon Nov 02 13:42:49 -0800 2009
1
2
3
def index
  @articles = Article.find(:all, :include => [:newspaper], :order => "printed_date DESC")
    
Gravatar
Sun Feb 22 17:45:13 -0800 2009
1
2
3
require 'test_helper'
 
class InfoControllerTest < ActionController::TestCase
Gravatar
Wed Feb 18 23:52:11 -0800 2009
1
2
3
<!-- #... other stuff -->
 
<ul>
Gravatar
Wed Feb 18 23:44:59 -0800 2009
1
2
3
es:
  number:
    currency:
Gravatar
Tue Feb 03 15:12:26 -0800 2009
1
2
3
function setProgressBar(value_in_px){
  progress_bar = $('progress');
  max_width = parseInt($('progress_container').getStyle('width'));
Gravatar
Tue Jan 27 13:30:10 -0800 2009
1
2
3
require 'test_helper'
 
class ProductsControllerTest < ActionController::TestCase
Gravatar
Tue Jan 27 13:30:07 -0800 2009
1
2
3
  test "should spit out error messages on screen because of a missing title" do
    post :create, :product => {
      :title => '',
Gravatar
Sun Jan 11 12:45:31 -0800 2009
1
2
3
  class Player
 
    SPECIALS = []
Gravatar
Sun Jan 11 12:11:42 -0800 2009
1
2
3
  class Player
 
    SPECIALS = []
Gravatar
Mon Dec 29 13:14:37 -0800 2008
1
2
3
def friendly_structure player_data
   # take player_data and turn it into array of Ostructs
   players = []
Gravatar
Mon Dec 29 13:13:56 -0800 2008
1
2
3
def friendly_structure player_data
   # take player_data and turn it into array of Ostructs
   players = []
Gravatar
Tue Dec 02 21:55:19 -0800 2008
1
2
3
# forgot where I got this, thanks dude!
# reformatting @soawesome's forward as Ruby format
class String
Gravatar
Sun Nov 02 11:55:33 -0800 2008
1
2
3
#!/usr/bin/env ruby -w
# created by Mark Holton (holtonma@gmail.com)
# copy as much as you want to
Gravatar
Thu Oct 30 17:23:59 -0700 2008
1
2
3
# Mark Holton
# 10-29-2008
# OGWR
Gravatar
Thu Oct 30 17:20:34 -0700 2008
1
2
3
# Mark Holton
# 10-29-2008
# purpose: scrape the official world golf ranking,