Public Gists by technicalpickles

Gravatar
Thu Nov 05 14:55:55 -0800 2009
1
2
3
require 'spec'
require 'spec/autorun'
 
Gravatar
Mon Nov 02 13:56:57 -0800 2009
1
2
3
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
Gravatar
Mon Nov 02 13:19:26 -0800 2009
1
2
3
- content_for :head_hook do
  = google_maps_javascript_include_tag
 
Gravatar
Mon Nov 02 12:36:38 -0800 2009
1
2
3
 
class BurninateTest < Test::Unit::TestCase
  def teardown
Gravatar
Sat Oct 31 12:29:57 -0700 2009
1
2
3
def Feature(name, &block)
  test_class = Class.new(class_name(name), Test::Unit::TestCase)
  test_class.class_eval do
Gravatar
Mon Oct 26 01:31:17 -0700 2009
1
2
3
def in_file_test(file, &block)
  if $0 == file
    require 'test/unit'
Gravatar
Sat Oct 24 08:55:22 -0700 2009
1
2
3
require 'nokogiri'
require 'open-uri'
require 'stringex'
Gravatar
Sat Oct 24 08:24:56 -0700 2009
1
2
3
    <form action="/qrush/gemcutter/wikis/home" class="edit_wiki" id="edit_wiki_124900" method="post"><div style="margin:0;padding:0"><input name="_method" type="hidden" value="put" /></div>
 
      <label>
Gravatar
Wed Oct 21 17:53:46 -0700 2009
1
2
3
  def index
    respond_to do |wants|
      wants.html { @events = Event.paginate_by_date params[:page] }
Gravatar
Wed Oct 21 00:38:23 -0700 2009
1
2
3
    def install_using_git(options = {})
      root = rails_env.root
      install_path = mkdir_p "#{root}/vendor/plugins/#{name}"
Gravatar
Tue Oct 20 23:59:42 -0700 2009
1
2
3
    def install_using_git(options = {})
      root = rails_env.root
      install_path = mkdir_p "#{root}/vendor/plugins/#{name}"
Gravatar
Tue Oct 20 11:32:02 -0700 2009
1
2
3
require 'scrubyt'
 
class RecipeScraper::Base
Gravatar
Tue Oct 20 09:31:45 -0700 2009
1
2
3
http://stackoverflow.com/questions/57106/anyone-know-of-an-nfl-or-nba-api
http://www.stats.com/
http://xmlteam.com/flexsport.php
Gravatar
Mon Oct 19 14:56:46 -0700 2009
1
2
3
# Summary:
# * We have a Debatable module that adds debate functionality to
# ActiveRecord.
Gravatar
Mon Oct 19 14:13:47 -0700 2009
1
2
3
classs User < ActiveRecord::Base
  def accepted_debates
    [Claim, Game, Fantasy].inject([]) { |all_debates, debate_type| all_debates + debate_type.find(:all, :conditions => ['(opponent_id = ? OR user_id = ?) AND state IN (?)', id, id, Debatable::IN_PROGRESS_STATES])}
Gravatar
Mon Oct 19 11:36:46 -0700 2009
1
2
3
 22 task :spec => [ "spec:default", "spec:job_specs" ]
 23
 24 namespace :spec do
Gravatar
Mon Oct 19 07:25:50 -0700 2009
1
2
3
$ ../bin/jeweler jeweler.gemspec
        create Rakefile
Jeweler has created ./Rakefile based on jeweler.gemspec
Gravatar
Sat Oct 17 11:57:02 -0700 2009
1
2
3
  def IRB.run_config
    if @CONF[:RC]
      begin
Gravatar
Sat Oct 17 09:23:31 -0700 2009
1
2
3
#
# irb/completor.rb -
# $Release Version: 0.9$
Gravatar
Wed Oct 14 11:35:31 -0700 2009
1
2
3
mode=opt.searchType;
param=opt.searchObject;
timer=opt.live;