Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_attached_file :photo, :styles => { :thumb=> "100x100",:small => "150x150>" } , | |
:url => "/images/show/:id/:style/", | |
:path => "#{RAILS_ROOT}/attachments/:class/:id/:style/:basename.:extension" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.dirname(__FILE__) + '/../../spec_helper' | |
describe Admin::SuscriptoresHelper do | |
#Delete this example and add some real ones or delete this file | |
it "should include the Admin::SuscriptoresHelper" do | |
included_modules = self.metaclass.send :included_modules | |
included_modules.should include(Admin::SuscriptoresHelper) | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION | |
require File.join(File.dirname(__FILE__), 'boot') | |
Rails::Initializer.run do |config| | |
config.action_controller.session = { | |
:session_key => '_socroto_session', | |
:secret => 'd57a6a7fbe921516182810d4c1e3c0b0a3e966d2621a69a2c1e4416554a0e9cf5bbf20116e79a77a6b1fba47bab58b2a4d160987bd5fa2109b3b15f631c461ad' | |
} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I maeded u a lolcat | |
but ur all asskee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I maeded u a lolcat | |
but ur all asskee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I made you a lolcat | |
but you're all ASCII. | |
I'm in your snippet, modifying your grammar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I maded for youse a lolfeline | |
but your EBCDIC. | |
Im' in you;re whippet, modefying your grammer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Change lc_width and rc_width to control column width, and voila */ | |
!lc_width= 140px | |
!rc_width= 180px | |
!lc_p= 10px | |
!lc_pad= !lc_p*2 | |
!rc_p= 10px | |
!rc_pad= !rc_p*2 | |
!lc_full= !lc_width + !lc_pad | |
!rc_full= !rc_width + !rc_pad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "tempfile" | |
GIST_URL = 'http://gist.github.com/gists' | |
if ARGV.include? "-p" | |
text = `pbpaste` | |
elsif !ARGV.empty? | |
@filename = ARGV.shift | |
text = File.read(File.expand_path(@filename)) |