This file contains hidden or 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
| # Filename: RAILS_ROOT/config/initializers/paperclip_thumbnail_with_dimensions.rb | |
| # Required Configuration in the model | |
| # | |
| # include Paperclip::Dimensions | |
| # | |
| # has_attached_file :image, | |
| # :styles => { | |
| # :thumbnail => { | |
| # :geometry => "100x100>", | |
| # :format => :png |
This file contains hidden or 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
| include Paperclip::Dimensions | |
| has_attached_file :image, | |
| :styles => { | |
| :tiny =>{:geometry => "95x110>"}, | |
| :small =>{:geometry => "114x132>"}, | |
| :normal =>{:geometry => "133x154>"}, | |
| :large =>{:geometry => "190x220>"} | |
| }, | |
| :path => Settings.user_images.base_path + ":id/:style.:extension", |
This file contains hidden or 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
| #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
| # | |
| # This file was generated by RubyGems. | |
| # | |
| # The application 'cucumber' is installed as part of a gem, and | |
| # this file is here to facilitate running it. | |
| # | |
| if File.exists? "bin/cucumber" | |
| exec "bin/cucumber " + $*.join(" ") |
This file contains hidden or 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
| module BookmarkletFormat | |
| Mime::Type.register_alias "text/javascript", :bookmarklet | |
| def infer_bookmarklet_format | |
| if request.format == :js && request.referer.to_s.match('^' + bookmarklet_url.to_s) | |
| request.format = :bookmarklet unless disable_bookmarklet? | |
| end | |
| end | |
| def disable_bookmarklet? |
This file contains hidden or 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
| module BookmarkletFormat | |
| Mime::Type.register_alias "text/javascript", :bookmarklet | |
| end |
This file contains hidden or 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
| class ApplicationController < ActionController::Base | |
| before_filter :infer_bookmarklet_format | |
| include BookmarkletFormat | |
| end |
This file contains hidden or 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
| def page_title(title=view_context.t('.title')) | |
| content_tag(:h1, title) | |
| end |
This file contains hidden or 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
| <header> | |
| <%=page_title %> | |
| <hr/> | |
| </header> | |
| <%= render "form" %> |
This file contains hidden or 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
| en: | |
| user_sessions: | |
| new: | |
| title: "Sign in to My Site" |
This file contains hidden or 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
| # authenticate with the repository | |
| # use a blank password | |
| cvs -d:pserver:anonymous@jusb.cvs.sourceforge.net:/cvsroot/jusb login | |
| # pull down the source | |
| cvs -z3 -d:pserver:anonymous@jusb.cvs.sourceforge.net:/cvsroot/jusb co -P jusb | |
| # change directories | |
| cd jusb |
OlderNewer