Skip to content

Instantly share code, notes, and snippets.

def what_is_gist
"I don't know wtf it is."
end
%h1.title RetireHQ Privacy Policy
#terms.generic
%p Last updated: July 21, 2008
%h2 Data Collected by the RetireHQ Website
%p Your privacy is of paramount importance to us. We believe that by respecting your privacy we will earn the opportunity to build a lasting relationship with your business, your clients and your staff. Any information you provide to us will only be used for the purpose for which it was submitted. We collect your information primarily for contact and billing purposes. Under no circumstances will your information be shared with, or sold to, or disclosed to any third party, except where required by law.
def what_is_gist
Sex::Pure
end
mvim `grep -r for_users_by_type * --include "*.rb" | cut -d ":" -f1 `
I won't bore you with a long introduction when I can do it just as easily with a short one.
Now for the part you've all been waiting for, the end.
bin/
obj/
*.user
*.suo
_ReSharper*
*.resharper
@joefiorini
joefiorini / Banking.cob
Created September 3, 2008 19:35
Came across a COBOL app I wrote in college. Thought it'd be fun to post.
IDENTIFICATION DIVISION.
PROGRAM-ID. EXAMPLE2.
************************************************************************
* Put your name and a description of the program here *
* *
************************************************************************
ENVIRONMENT DIVISION.
@joefiorini
joefiorini / spin.rb
Created September 8, 2008 19:22
A simple script to restart passenger sites; quicker than typing touch tmp/restart.txt
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
`touch #{RAILS_ROOT}/tmp/restart.txt`
@joefiorini
joefiorini / gist:13144
Created September 26, 2008 16:26
Code to make resource controllers more RESTful
class ApplicationResourceController < ApplicationController
resource_controller
protect_from_forgery :only => [:update, :delete]
index.wants.xml { render :xml => collection.to_xml, :status => :ok }
show do
failure.wants.xml { render :nothing => true, :status => 404 }
wants.xml do
unless object
class ShowsController < ApplicationResourceController
def route_name
'show'
end
def resource_name
'show'
end