Public Gists by deduce

Gravatar
Tue Sep 29 09:53:22 -0700 2009
1
2
3
<fb:swf swfbgcolor="000000"
        imgstyle="border-width:3px; border-color:white;"
        swfsrc='http://www.youtube.com/v/dj4omrp0V1Y&hl=en&fs=1&rel=0&hd=1'
Gravatar
Sun Sep 27 04:05:22 -0700 2009

      
gist: 194721 smtp_tls.rb
Gravatar
Sun Sep 27 03:58:18 -0700 2009

      
Gravatar
Sat Jun 27 08:15:58 -0700 2009
1
2
3
require 'net/http'
require 'hpricot'
 
Gravatar
Wed Jun 17 20:09:17 -0700 2009
1
2
3
HOWTO: iPhone AT&T Tethering
============================
 
Gravatar
Mon Jun 15 08:07:32 -0700 2009
1
2
3
#!/usr/bin/env perl -w
use strict;
use 5.010;
Gravatar
Wed Apr 08 02:14:50 -0700 2009
1
2
3
Rails::Initializer.run do |config|
  config.logger = Logger.new(STDOUT)
  config.active_record.colorize_logging = false
Gravatar
Wed Apr 08 00:53:00 -0700 2009
1
2
3
(This is the text of the keynote I gave at Startup Riot 2009. Will update when video becomes available.)
 
Hi everyone, I'm Chris Wanstrath, and I'm one of the co-founders of GitHub.
Gravatar
Sun Jan 11 19:20:59 -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:
gist: 10810 ActiveRecord: ActiveRecord:...
Gravatar
Sun Sep 14 20:42:45 -0700 2008
1
2
3
class User < ActiveRecord::Base
  named_scope :active, :conditions => {:active => true}
  named_scope :inactive, :conditions => {:active => false}
Gravatar
Sun Sep 14 20:25:59 -0700 2008
1
2
3
def self.find(*args)
     if args.first.to_s == "random"
          super(find(:first , :offset => (count * rand).to_i))
gist: 10807 Attachment_fu: How To Delet...
Gravatar
Sun Sep 14 20:22:06 -0700 2008
1
2
3
class Photo < ActiveRecord::Base
 
  has_attachment options_for_attachment_fu