Public Gists by bryanl

Gravatar
Thu Oct 22 08:27:20 -0700 2009
1
2
3
select id, default_photo_id, user_id, group_id, image, image_mtime, first_name, last_name, gender
from
(select id, default_photo_id, user_id, group_id, image, image_mtime, first_name, last_name, gender,
Gravatar
Thu Oct 08 19:14:47 -0700 2009
1
2
3
require 'test/unit'
 
 
Gravatar
Wed Oct 07 08:21:50 -0700 2009
1
2
3
Transform %r{^(\d+) free groups$} do |count|
  count.to_i
end
Gravatar
Thu Oct 01 07:26:22 -0700 2009
1
2
3
Feature: add banners
 
  As an affiliate administrator
Gravatar
Thu Oct 01 07:23:07 -0700 2009
1
2
3
Feature: add banners
 
  As an affiliate administrator
Gravatar
Tue Sep 15 11:00:43 -0700 2009
1
2
3
remote_file "/tmp/ruby-enterprise_1.8.6-20090610_amd64.deb" do
  source "ruby-enterprise_1.8.6-20090610_amd64.deb"
  mode "0644"
Gravatar
Tue Sep 08 07:57:43 -0700 2009
1
2
3
  def index
    if @membership or @group.non_private?
      summary
Gravatar
Tue Sep 08 07:57:36 -0700 2009
1
2
3
  def index
    if @membership or @group.non_private?
      summary
Gravatar
Wed Jul 08 18:00:45 -0700 2009
1
2
3
if subgroup.save
  render :json => subgroup.to_json(:only => [:id, :name, :identifer]),
         :status => :created, :location => subgroup
Gravatar
Wed Jul 01 18:13:37 -0700 2009
1
2
3
--------------
ROW OPERATIONS
--------------
Gravatar
Wed Jun 17 10:33:00 -0700 2009
1
2
3
18908 nobody 15 0 968m 740m 6588 S 29.2 9.3 2:50.07 mongrel_rails
19009 nobody 16 0 956m 732m 6024 R 22.3 9.2 3:18.58 mongrel_rails
18860 nobody 15 0 723m 496m 6056 S 21.9 6.2 2:40.48 mongrel_rails
Gravatar
Mon Jun 15 13:31:27 -0700 2009
1
2
3
package aes4java;
 
import java.io.BufferedReader;
Gravatar
Wed Jun 10 11:35:33 -0700 2009
1
2
3
$ ssh db01.ops.groupsite.com
ssh: Could not resolve hostname db01.ops.groupsite.com: nodename nor servname provided, or not known
➜ ~/Development/collectivex/cloud-provision
Gravatar
Sun Jun 07 12:19:53 -0700 2009
1
2
3
[error]: NoMethodError: undefined method `count' for []:Array
[error]: in generator YARD::Generators::AttributesGenerator: /Users/bryan/Development/ruby/lib/ruby/gems/1.8/gems/yard-0.2.3/bin/../lib/../templates/default/attributes/html/header.erb
[error]: /Users/bryan/Development/ruby/lib/ruby/gems/1.8/gems/yard-0.2.3/bin/../lib/../templates/default/attributes/html/header.erb:10:in `render_method'
Gravatar
Tue Jun 02 11:20:42 -0700 2009
1
2
3
 has_many_using :memberships, :using=>:group_ids, :group=>'@alias@.user_id', :readonly=>true,
                                :include=>:user, :conditions=>"users.completed = 1", :with_deleted=>true,
                                :select=>%q{
Gravatar
Mon Jun 01 10:39:26 -0700 2009
1
2
3
 def event_sql()
      %q{events.id, events.user_id, events.name, events.description,
CONVERT_TZ( CASE
Gravatar
Sun May 31 11:06:20 -0700 2009
1
2
3
/Users/bryan/Development/ruby/lib/ruby/1.8/i686-darwin9.7.0/openssl.bundle:
/usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
/usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
Gravatar
Sun May 31 08:21:11 -0700 2009
1
2
3
# from lib/ruby/1.8/open-uri.rb at around line 230
# this only breaks on my mac
 
Gravatar
Mon May 11 09:38:05 -0700 2009
1
2
3
module Sinatra
  module Authorization
 
Gravatar
Thu May 07 11:26:24 -0700 2009
1
2
3
  def const_accessor(sym, value, remove=false, freeze=true)
    value.deepfreeze if freeze
    sym = sym.to_s