Public Gists by unders

Gravatar
Fri Oct 16 01:38:20 -0700 2009
1
2
3
module DateTimeHelper
  def format_date_range(date_range)
    first = date_range.first
Gravatar
Sat Oct 03 03:13:15 -0700 2009

      
Gravatar
Sat Oct 03 03:13:03 -0700 2009

      
Gravatar
Wed Aug 26 10:14:54 -0700 2009
1
2
You are here:
<%= trail.to_html(response) %>
Gravatar
Mon Mar 16 06:11:17 -0700 2009
1
2
3
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
Gravatar
Tue Mar 10 16:06:07 -0700 2009
1
2
3
# How to find out where a method comes from.
# Learned this from Dave Thomas while teaching Advanced Ruby Studio
# Makes the case for separating method definitions into
Gravatar
Fri Feb 27 11:24:41 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Thu Feb 05 15:26:04 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Thu Feb 05 15:18:25 -0800 2009
1
2
3
module BuilderStepHelpers
 
  def create_model(model_name, attributes={})
Gravatar
Thu Feb 05 15:13:48 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Wed Feb 04 12:28:17 -0800 2009
1
2
3
module Sass::Script
  module Functions
    # substitue text in a string
Gravatar
Tue Feb 03 10:58:16 -0800 2009
1
2
3
class SomeClass
 
  class << self
Gravatar
Sat Jan 31 14:28:59 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'thor'
Gravatar
Mon Dec 22 12:36:49 -0800 2008
1
2
3
#!/bin/bash
VERSION="1.1"
REEV="http://rubyforge.org/frs/download.php/48623/ruby-enterprise-1.8.6-20081215.tar.gz"
Gravatar
Sat Aug 09 00:51:03 -0700 2008
1
2
3
desc "Push design to spec"
task :design do
  require 'yaml'
Gravatar
Wed Aug 06 02:38:42 -0700 2008
1
2
3
# by bryan helmkamp with slight modification by chris wanstrath
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow