Skip to content

Instantly share code, notes, and snippets.

View jschoolcraft's full-sized avatar

Jeff Schoolcraft jschoolcraft

View GitHub Profile
R. Oswalt (Houston Astros) vs. S. Olsen (Washington Nationals)
A. Reyes (Cleveland Indians) vs. B. Cecil (Toronto Blue Jays)
T. Lincecum (San Francisco Giants) vs. S. Marshall (Chicago Cubs)
K. Uehara (Baltimore Orioles) vs. M. Garza (Tampa Bay Rays)
V. Padilla (Texas Rangers) vs. E. Bedard (Seattle Mariners)
L. Hernandez (New York Mets) vs. K. Kawakami (Atlanta Braves)
N. Blackburn (Minnesota Twins) vs. R. Porcello (Detroit Tigers)
J. Beckett (Boston Red Sox) vs. J. Chamberlain (New York Yankees)
J. Suppan (Milwaukee Brewers) vs. I. Snell (Pittsburgh Pirates)
E. Volquez (Cincinnati Reds) vs. C. Volstad (Florida Marlins)
#!/opt/local/bin/ruby
# make sure that ^^^ points to your ruby
def seen_db?(db)
@seen_dbs ||= []
seen_it?(db, @seen_dbs)
end
def seen_table?(table)
@seen_tables ||= []
# config/database.yml
profile:
development
# config/environments/profile.rb
config.cache_classes = true
config.action_view.cache_template_loading = true
config.action_controller.perform_caching = false
config.log_level = :info
<VirtualHost 89.36.164.163:80>
ServerName git.aissac.ro
Include /etc/apache2/gzip.conf
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
</VirtualHost>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
#foo.rb
class Foo
end
# bork.rb
require 'rubygems'
require 'active_record'
def bork
5.times do
From 53d69b0caf71641b99c14f2238d7c7b85ec6d7f6 Mon Sep 17 00:00:00 2001
From: Jeff Schoolcraft <jeff@thequeue.net>
Date: Sat, 13 Jun 2009 05:36:50 -0400
Subject: [PATCH] cleaning up ban display on profiles
---
app/views/users/show.html.erb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
.......................................................FF......F..........................F....................*.................................................................................................................................
Pending:
Card deleted card should come out of the trash when a plus card is created (TODO)
/Users/jeff/development/wagn/spec/models/card/trash_spec.rb:11
1)
'Wql2 edited_by/edited should find card edited by joe using subspec' FAILED
expected: [#<Card::Basic id: 258, trunk_id: nil, created_at: "2009-05-21 13:40:31", updated_at: "2009-05-21 13:40:31", current_revision_id: 2174, name: "JoeNow", type: "Basic", extension_id: nil, extension_type: nil, created_by: 3, updated_by: 3, reader_id: 3, reader_type: "Role", tag_id: nil, key: "joe_now", trash: false, appender_type: nil, appender_id: nil, references_expired: nil, indexed_name: nil, indexed_content: nil>],
require 'autotest/fsevent'
require 'growl_glue'
Autotest.add_hook :initialize do |at|
%w{.svn .hg .git vendor}.each {|exception| at.add_exception(exception)}
end
GrowlGlue::Autotest.initialize do |config|
config.image :success => '~/Library/autotest/pass.png'
config.image :failure => '~/Library/autotest/fail.png'
require 'autotest/fsevent'
require 'growl_glue'
Autotest.add_hook :initialize do |at|
%w{.svn .hg .git vendor}.each {|exception| at.add_exception(exception)}
end
GrowlGlue::Autotest.initialize do |config|
config.image :success => '~/Library/autotest/pass.png'
config.image :failure => '~/Library/autotest/fail.png'