Public Gists by corey

Gravatar
Mon Nov 09 16:10:34 -0800 2009
1
2
3
# previously required http://github.com/mislav/addressable
# with changes merged upstream, main repo should work too:
# http://github.com/sporkmonger/addressable/
Gravatar
Mon Oct 19 21:31:37 -0700 2009
1
2
3
# you'd obviously have more settings somewhere
set :scm, :git
set :repository, "git@github.com:defunkt/github.git"
Gravatar
Tue Oct 13 10:11:20 -0700 2009

      
Gravatar
Tue Oct 13 10:11:02 -0700 2009

      
Gravatar
Sun Oct 04 01:56:47 -0700 2009
1
test
Gravatar
Fri Sep 18 18:12:49 -0700 2009
1
2
3
For each Ruby module/class, we have Ruby methods on the left and the equivalent
Clojure functions and/or relevant notes are on the right.
 
Gravatar
Thu Sep 17 09:14:26 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Wed Sep 09 13:05:01 -0700 2009

      
Gravatar
Thu Aug 20 13:21:25 -0700 2009
1
2
3
articles = Article.find(:all)
 
articles.each do |article|
Gravatar
Thu Jun 25 12:47:01 -0700 2009
1
2
3
module Autoconf
  extend self
 
Gravatar
Fri Jun 19 09:16:51 -0700 2009
1
2
3
class Hash
  # Accept a hash of values, changes the value in self
  # from the key in the param to be indexed at the value of param
Gravatar
Thu Jun 18 10:20:51 -0700 2009
1
2
3
module Enumerable
  def return
    each do |i|
Gravatar
Tue Mar 10 20:17:08 -0700 2009
1
2
3
define :mysql_database, :action => 'create' do
  def mysql(command, config=nil, )
    "mysql --defaults-file=#{config} --execute=#{command.inspect}"