Public Gists by geetarista

Gravatar
Thu Feb 05 10:14:42 -0800 2009
1
2
3
class ApplicationController < ActionController::Base
  
  # ban the bad ip
Gravatar
Thu Feb 05 08:12:56 -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
Sat Jan 31 20:47:55 -0800 2009
1
2
3
module Merb::Helpers::Form
  def date_field(*args)
    if bound?(*args)
Gravatar
Wed Jan 28 16:07:47 -0800 2009
1
2
3
# Simple example of using ShadowFacter with RSpec to verify system configuration
# http://twitter.com/bradleyktaylor | http://railsmachine.com
#
Gravatar
Wed Jan 14 09:53:28 -0800 2009
1
set :branch, "production"
Gravatar
Tue Jan 13 07:10:46 -0800 2009
1
2
3
require 'rubygems'
require 'benchmark'
 
Gravatar
Mon Jan 12 15:39:21 -0800 2009
1
2
3
# Supporting class for demo purposes
class DatabaseStub
  attr_reader :name
Gravatar
Thu Jan 08 15:05:23 -0800 2009
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
 
Gravatar
Wed Jan 07 12:48:51 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer: