alfajango.com

The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

github.com

This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...

wmd-editor.com

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...

makandra dev

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

To return non-HTML responses (like XLS spreadsheets), we usually use the respond_to do |format| format.xls do # send spreadsheet...

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When you create e.g. a sidebar box that contains headlines and paragraphs, the final paragraph's margin in that box...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

github.com

jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end

traitsjs.org

traits.js is a minimal, standards-compliant trait composition library for Javascript.

The following Sass will do it: hr color: #ddd background-color: #ddd border: none height: 1px

bitbucket.org

String manipulation extensions for the Underscore.js javascript library.

tinyMCE.activeEditor.getContent()

In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...

Create a branch: svn copy https://dev.makandra.de/svn/filepanic/trunk https://dev.makandra.de/svn/filepanic/branches/$ticketnumber_shortdesc Don't just copy the folder into your working...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...

See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...

makandra dev

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

makandra dev

tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html