Public Gists by zachinglis

Gravatar
Thu Jul 09 07:08:42 -0700 2009
1
2
3
# Make port 80 "real life" speeds
# You can also use Mongrel ports.
function slow_port {
Gravatar
Thu Jun 18 14:03:56 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
Gravatar
Sun Apr 26 20:19:59 -0700 2009
1
2
3
ul
  list-style-type: none
 
Gravatar
Fri Apr 03 13:19:52 -0700 2009
1
2
3
## Listing
  has_one :residential
 
Gravatar
Wed Apr 01 14:30:06 -0700 2009
1
2
3
>> a
=> ["joe", "pass"]
>> h = {}
Gravatar
Mon Mar 23 14:41:03 -0700 2009
1
2
3
## code
  def listing_file=(file)
    # self.listing_files.build.attachment = file
Gravatar
Fri Mar 20 11:20:18 -0700 2009
1
2
<% form_for :listing, @listing, :url => listing_path(@listing), :html => { :method => :put, :class => "edit_post", :id => "edit_post_45" } do |f| %>
## method is still not put as described in the api.
Gravatar
Sat Dec 20 14:15:44 -0800 2008
1
2
3
  def self.authenticate(login, password)
    return nil if login.blank? or password.blank?
    
Gravatar
Tue Sep 23 21:25:41 -0700 2008
1
2
3
## django
 
from django.contrib.auth.models import User
gist: 6624 Unobtrusively have put and ...
Gravatar
Thu Aug 21 12:49:14 -0700 2008
1
2
3
// Examples:
//
// button_to "Mark as unread", mark_as_unread_message_path(message), :method => :put, :class => "form_to_link"
Gravatar
Mon Jul 28 11:56:06 -0700 2008
1
2
3
>> Business.search(:conditions => { :state => "paid" }).length
=> 20
>> Business.find_all_by_state("paid").length
Gravatar
Mon Jul 21 14:10:31 -0700 2008
1
Interesting.