Public Gists by carlosbrando

Gravatar
Mon Nov 16 17:05:33 -0800 2009
1
2
3
require "rubygems"
require "blockenspiel"
 
Gravatar
Mon Nov 16 17:03:42 -0800 2009
1
2
3
require "rubygems"
require "blockenspiel"
 
Gravatar
Mon Nov 16 17:03:28 -0800 2009
1
2
3
require "rubygems"
require "blockenspiel"
 
Gravatar
Mon Nov 16 16:53:04 -0800 2009
1
2
3
require "rubygems"
require "blockenspiel"
 
Gravatar
Sun Nov 15 20:57:53 -0800 2009
1
2
3
class RouteSet
 
  def draw(&block)
Gravatar
Sun Nov 15 20:52:28 -0800 2009
1
2
3
class RouteSet
  
  class Mapper
Gravatar
Sun Nov 15 20:25:07 -0800 2009
1
2
3
class MyDSL
  
  class DSL
Gravatar
Sun Nov 15 18:44:29 -0800 2009
1
2
3
class MyDSL
  
  class DSL
Gravatar
Sun Nov 15 18:40:13 -0800 2009
1
2
3
class MyDSL
  
  class DSL
Gravatar
Tue Sep 15 10:18:04 -0700 2009
1
2
3
(rdb:1) p "uma string normal"
"uma string normal"
(rdb:1) p "uma string com o sinal de ;"
Gravatar
Tue Sep 15 09:57:00 -0700 2009
1
2
3
(rdb:1) p "; "
SyntaxError Exception: compile error
/opt/local/lib/ruby/gems/1.8/gems/sociably-0.0.1/lib/sociably/renderable.rb:16: unterminated string meets end of file
Gravatar
Mon Sep 07 15:00:20 -0700 2009
1
2
3
# Exemplo do uso de rotas polimórficas para gerar a URL à partir
# da classe de um modelo
 
Gravatar
Thu Jul 30 14:42:26 -0700 2009
1
2
3
Rails::Initializer.run do |config|
 
  # ...
Gravatar
Thu May 21 12:03:48 -0700 2009
1
2
3
[carlosbrando:remarkable(master)]$ rake pre_commit
(in /Users/carlosbrando/Projects/github/remarkable)
cd /Users/carlosbrando/Projects/github/remarkable/remarkable
Gravatar
Thu May 21 11:58:38 -0700 2009
1
2
3
[carlosbrando:remarkable(master)]$ rake pre_commit
(in /Users/carlosbrando/Projects/github/remarkable)
cd /Users/carlosbrando/Projects/github/remarkable/remarkable
Gravatar
Thu May 21 11:49:31 -0700 2009
1
2
3
1)
ArgumentError in 'Admin::ProductOptionTypesController GET index should == [#<Discount id: 14, value: 344, on_percentage: true, active: true, discountable_id: 7, discountable_type: "Product", starting_on: "2009-05-20 18:47:12", ending_on: "2009-05-22 18:47:12", created_at: "2009-05-21 18:47:12", updated_at: "2009-05-21 18:47:12">]'
Cannot yield from a Proc type filter. The Proc must take two arguments and execute #call on the second argument.
Gravatar
Wed Feb 11 03:36:07 -0800 2009
1
2
3
# Should prepare a formatted link in the following format:
# <li><a href="#"><span>Texto</span></a></li>
#
Gravatar
Thu Feb 05 10:05:05 -0800 2009
1
2
3
class MessagesBuilder
  def initialize
    @description = nil
Gravatar
Thu Feb 05 09:08:54 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Fri Jan 23 03:26:08 -0800 2009
1
2
3
(function($){
$.fn.defaultValueActsAsHint = function() {
return this.each(function() {