Public Gists by joevandyk

Gravatar
Wed Nov 04 10:35:08 -0800 2009
1
2
3
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
require 'action_view/test_case'
 
Gravatar
Tue Oct 13 20:21:10 -0700 2009
1
2
3
    def gain_value_of other_attribute, attribute
      self.update_attribute(attribute.to_sym, self.send(other_attribute.to_sym))
    end
Gravatar
Tue Oct 06 17:12:14 -0700 2009
1
2
3
root@ci:/etc/nagios3/conf.d# cat services_nagios2.cfg
# check that web services are running
define service {
Gravatar
Mon Oct 05 11:53:00 -0700 2009
1
2
3
-- Removes all vowels from stdin
 
import Test.QuickCheck
Gravatar
Mon Oct 05 11:52:40 -0700 2009
1
2
3
-- Removes all vowels from stdin
 
import Test.QuickCheck
Gravatar
Mon Oct 05 11:21:19 -0700 2009
1
2
3
-- Removes all vowels from stdin, print to stdout
 
devowelize :: Char -> Char
Gravatar
Mon Oct 05 09:53:13 -0700 2009
1
2
3
import Test.QuickCheck
 
add :: (Num a) => a -> a -> a
Gravatar
Mon Oct 05 09:42:08 -0700 2009
1
2
3
$ cat test.hs
import Test.QuickCheck
add :: (Num a) => a -> a -> a
Gravatar
Mon Oct 05 09:40:23 -0700 2009
1
2
3
import Test.QuickCheck()
add :: (Num a) => a -> a -> a
add x y = x - y
Gravatar
Mon Oct 05 09:07:54 -0700 2009
1
2
3
-- Point is to read from stdin, outputing each line prefixed with "Yes, "
-- Appends "Yes, " to a string
prefix_yes = ("Yes, " ++)
Gravatar
Mon Oct 05 08:54:03 -0700 2009
1
2
3
-- Point is to read from stdin, outputing each line prefixed with "Yes, "
 
-- Appends "Yes, " to a string
Gravatar
Mon Oct 05 08:25:29 -0700 2009
1
2
3
-- Point is to read from stdin, outputing each line prefixed with "Yes, "
 
-- Appends "Yes, " to a string
Gravatar
Sat Oct 03 20:57:46 -0700 2009
1
2
3
### Autotest fails, rake works.
 
$ autotest
Gravatar
Fri Oct 02 17:09:50 -0700 2009
1
2
3
class AddPaymentAuthorizationIdToOrders < ActiveRecord::Migration
  def self.up
    add_column :orders, :payment_authorization_id, :string
Gravatar
Thu Oct 01 12:47:07 -0700 2009
1
2
3
## Running 'rake db:create', no database exists yet
 
 
Gravatar
Thu Oct 01 12:46:30 -0700 2009
1
2
3
(in /home/joe/projects/tanga)
** Invoke db:drop (first_time)
** Invoke environment (first_time)
Gravatar
Thu Oct 01 12:45:30 -0700 2009
1
2
3
(in /home/joe/projects/tanga)
** Invoke db:drop (first_time)
** Invoke environment (first_time)
Gravatar
Wed Sep 30 14:28:52 -0700 2009

      
Gravatar
Tue Sep 29 12:31:06 -0700 2009
1
2
3
package "python-moinmoin" do
  action :install
end
Gravatar
Tue Sep 29 12:30:56 -0700 2009
1
2
3
package "python-moinmoin" do
  action :install
end