Public Gists by redsquirrel

Gravatar
Wed Oct 07 07:28:04 -0700 2009
1
foo
Gravatar
Tue Sep 29 06:14:58 -0700 2009

      
Gravatar
Mon Sep 28 14:27:19 -0700 2009

      
Gravatar
Mon Sep 28 14:25:35 -0700 2009

      
Gravatar
Mon Sep 28 14:25:34 -0700 2009

      
Gravatar
Tue Sep 22 14:46:17 -0700 2009
1
2
3
(define (cbrt-iter guess x)
  (if (good-enough? guess x)
      guess
Gravatar
Mon Sep 21 18:23:02 -0700 2009
1
2
3
(define (good-enough? guess x)
  (< (abs (- (square guess) x)) 0.001))
 
Gravatar
Mon Sep 21 18:03:26 -0700 2009
1
2
3
;; What happens when Alyssa uses new-if is that all of new-if's
;; "arguments" are evaluated and then given to new-if, as opposed
;; to the special form of "if" where the "else" clause is only
Gravatar
Mon Sep 21 17:36:39 -0700 2009
1
2
3
;; SICP 1.5
 
;; Given:
Gravatar
Fri Sep 18 10:50:32 -0700 2009
1
2
3
SICP 1.4
Fork me. Solve me.
====
Gravatar
Fri Sep 18 10:49:59 -0700 2009
1
2
3
SICP 1.3
Fork me. Solve me.
====
Gravatar
Fri Sep 18 10:49:31 -0700 2009
1
2
3
SICP 1.2
Fork me. Solve me.
====
Gravatar
Fri Sep 18 10:48:50 -0700 2009
1
2
3
SICP 1.1
Fork me. Solve me.
====
Gravatar
Thu Jul 30 04:38:08 -0700 2009
1
2
3
  1) Error:
test_clone_to_users_assigns_promotion_modules_to_new_promotion(PromotionTest):
Errno::ENOENT: No such file or directory - /Users/redsquirrel/Projects/gldl/mimi/repos/trunk/public/system/promotion_images/0000/0001/foo.jpg
Gravatar
Mon Jul 27 10:54:48 -0700 2009
1
2
3
DROP PROCEDURE IF EXISTS mailing_prevent_resend;
 
DELIMITER //
Gravatar
Fri May 01 13:15:38 -0700 2009
1
2
3
require 'rubygems'
require 'hpricot'
 
Gravatar
Fri Jan 23 13:48:34 -0800 2009
1
2
3
role :mail, *(1..8).map { |n| "mailserver#{n}.yourdomain.com" }
 
desc "grab postfix stats"
Gravatar
Fri Jan 16 13:32:30 -0800 2009
1
2
3
class DatabaseReport
  def initialize(io, step_mother, options={})
 
Gravatar
Tue Dec 30 09:05:15 -0800 2008
1
2
3
require 'ostruct'
 
# http://en.wikipedia.org/wiki/Sudoku
Gravatar
Thu Dec 18 10:32:08 -0800 2008
1
2
3
class Module
  def bool_accessor(attribute)
    attr_accessor attribute