Public Gists by metaskills

Gravatar
Mon Nov 23 09:13:33 -0800 2009
1
2
3
From d6e50913039d93d5a55daf3e952c79c839f9cdca Mon Sep 17 00:00:00 2001
From: Ken Collins <ken@metaskills.net>
Date: Mon, 23 Nov 2009 11:44:23 -0500
Gravatar
Mon Nov 23 09:10:18 -0800 2009
1
2
3
# ISSUE: http://github.com/thoughtbot/paperclip/issues/#issue/118
 
 
Gravatar
Thu Nov 19 15:23:14 -0800 2009
1
2
3
require 'fileutils'
 
source_path = "/Users/kencollins/Desktop/source.txt"
Gravatar
Wed Nov 18 17:25:04 -0800 2009
1
2
3
Real world savings for people that run real webservers is equal
to 8 kilobytes. Get real, get pragmatic and stop byte fucking!
Gravatar
Tue Nov 03 14:39:25 -0800 2009
1
2
3
class EPlayer < Player
  def initialize( opponent_class_name )
    @oc = Module.const_get opponent_class_name
Gravatar
Mon Nov 02 09:35:57 -0800 2009
1
2
3
require 'rubygems'
require 'activesupport'
 
Gravatar
Wed Oct 28 19:24:19 -0700 2009
1
2
3
diff --git a/test/cases/adapter_test_sqlserver.rb b/test/cases/adapter_test_sqlserver.rb
index e988227..9be0339 100644
--- a/test/cases/adapter_test_sqlserver.rb
Gravatar
Tue Oct 27 07:04:34 -0700 2009
1
2
3
module AttrStripper
  module Stripper
    
Gravatar
Tue Oct 20 20:15:39 -0700 2009
1
2
3
2009-10-20 23:13:48.236 MyiPhoneApp[35225:207] [self savedLocation]: (
    0,
    <NSIndexPath 0x3c1ea80> 2 indexes [1, 0]
Gravatar
Tue Oct 20 19:37:50 -0700 2009
1
2
3
# source ~/.git_auto_complete.sh
 
 
Gravatar
Sat Oct 10 19:39:18 -0700 2009
1
2
3
module Rack
  class ZombieShotgun
    
Gravatar
Thu May 14 08:37:06 -0700 2009
1
2
3
# Ruby: 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9]
# Using a both types of encoded string literals
 
Gravatar
Thu May 14 08:17:59 -0700 2009
1
2
3
# Ruby: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
 
 
Gravatar
Tue Apr 21 04:57:44 -0700 2009
1
2
3
  should 'not add locking conditions to sub selects' do
    start_sql = "SELECT * FROM [people] WHERE ([people].[id] = 1) AND (id IN (SELECT id FROM CONTAINSTABLE(people,*,'test')))"
    expected_sql = "SELECT * FROM [people] WITH (NOLOCK) WHERE ([people].[id] = 1) AND (id IN (SELECT id FROM CONTAINSTABLE(people,*,'test')))"
Gravatar
Sat Mar 14 12:14:56 -0700 2009
1
2
3
- (id)initWithCoder:(NSCoder *)coder {
  if (self = [super initWithCoder:coder]) {
    self.teams = [NSMutableArray
Gravatar
Mon Feb 09 13:23:51 -0800 2009
1
2
3
    module VersionedExtensions
      
      def save_version?
Gravatar
Mon Feb 09 13:22:58 -0800 2009
1
2
3
    module VersionedExtensions
      
      def save_version?
Gravatar
Wed Feb 04 05:56:34 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
APPS = ['Address Book','Calculator','Dictionary','DVD Player','Font Book','iCal','QuickTime Player','Safari']
Gravatar
Sun Feb 01 11:21:55 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
# Subversion Fame Report
Gravatar
Tue Jan 27 20:38:32 -0800 2009
1
2
3
a = if foo = nil # !> found = in conditional, should be ==
      'bar'