Public Gists by technicalpickles

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;
gist: 209695 Example of using geokit for...
Gravatar
Tue Oct 13 17:40:52 -0700 2009
1
2
3
module ApplicationHelper
  def google_maps_javascript_include_tag
    unless @google_maps_included
Gravatar
Fri Oct 09 13:16:27 -0700 2009
1
2
3
development:
  adapter: mysql
  database: fanvsfan_development
Gravatar
Sun Oct 04 22:33:05 -0700 2009
1
2
3
class Mustache::Rails < Mustache
  include ActionController::UrlWriter
  include ActionView::Helpers
Gravatar
Thu Oct 01 14:07:24 -0700 2009
1
2
3
Delayed::Job.class_eval do
  def log_exception_with_hoptoad(error)
    log_exception_without_hoptoad
Gravatar
Tue Sep 29 20:58:34 -0700 2009
1
2
3
$ rake features
(in /Users/nichoj/Projects/gemcutter)
/gentoo/usr/bin/ruby18 -I "/gentoo/usr/lib/ruby/gems/1.8/gems/cucumber-0.3.104/lib:lib" "/gentoo/usr/lib/ruby/gems/1.8/gems/cucumber-0.3.104/bin/cucumber" --color --tags ~@wip --strict --format pretty features/delete.feature features/migrate.feature features/owner.feature features/password_reset.feature features/push.feature features/search.feature features/sign_in.feature features/sign_out.feature features/sign_up.feature
Gravatar
Sun Sep 27 16:20:14 -0700 2009
1
2
3
require 'ipaddr'
 
IPAddr.class_eval do
Gravatar
Thu Sep 24 14:34:30 -0700 2009
1
2
3
Spec::Matchers.define :include_module do |mod|
  match do |instance|
    mod.instance_methods.inject(true) { |accum, method| accum && instance.respond_to?(method) }
Gravatar
Wed Sep 23 18:47:06 -0700 2009
1
2
3
Dir["#{RAILS_ROOT}/vendor/gems/*/tasks/*.rake"].each do |file|
  load file
end
Gravatar
Wed Sep 16 19:51:32 -0700 2009
1
2
3
  def create
    @user = ::User.authenticate(params[:session][:email],
                                params[:session][:password])
Gravatar
Tue Sep 15 22:17:56 -0700 2009
1
2
3
Bostonrb = {
  showCrud: function() {
      $(this).find('.crud').show();
Gravatar
Mon Sep 14 19:00:27 -0700 2009
1
2
3
$ gem search --remote --prerelease rspec
 
*** REMOTE GEMS ***