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

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.

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...

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...

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...

makandra dev
github.com

A small library to provide the Rails I18n translations in Javascript clients.

makandra dev
codemirror.net

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...

teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

makandra dev
robertwhurst.github.com

KeyboardJS is a library for binding to keys or key combos

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.

intridea.com

This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...

makandra dev

If you need to debug Analytics tracking, consider using this chrome extension. It will replace the tracking code with a...

addyosmani.github.com

Developers these days are spoiled with choice when it comes to selecting an MV* framework for structuring and organizing JavaScript...

momentjs.com

A lightweight javascript date library for parsing, manipulating, and formatting dates.

This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

When using Rails to truncate strings, you may end up with strings that are still too long for their container...