When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...

Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...

Lately, I came across a nasty error. I had a class Article that included FooTrait and BarTrait. In BarTrait, I...

Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...

preloaders.net

Generated animations are free to use without backlink obligations... ... WITH THE EXCEPTION of any other animated images generator applications

When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...

makandra dev
goat1000.com

TagCanvas is a Javascript class which will draw and animate a HTML5 canvas based tag cloud.

makandra dev
dzone.com

A collection of snippets to generate random number under certain conditions, as: gaussian with a specified distribution triangular distribution

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

You will find this useful when creating responsive designs that work well on small screens. The attached Javascript gives a...

Note: You might also want to check out BoxCryptor which does pretty much the same, and is supported across many...

Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...

Every time I started RubyMine, it opened the main window on the left monitor -- when moving it to the center...

stackoverflow.com

Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }

makandra dev
blueimp.github.com

File upload with nice UI, progress bar and preview, allowing multiple files and supports drag & drop. Its default is built...

When you want to test how an web-application reacts in a specific resolution, you can set up a specific...

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:

Spreewald gives you steps like these: When I enter "text" into the browser dialog Also see Accept or deny JavaScript...

I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }

Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...

By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...

steamdev.com

zClip is a lightweight jQuery "copy to clipboard" plugin built using the popular Zero Clipboard library. This plugin uses an...