You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
So you probably see the following error trace within your Passenger log file if you got here:
A small library to provide the Rails I18n translations in Javascript clients.
When you create a new branch and push it to origin, you won't be tracking it. This means a...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...
RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...
Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
A lightweight javascript date library for parsing, manipulating, and formatting dates.
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine...
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...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
Look up HTML5 features, know if they are ready for use, and if so find out you should use them...
Twitter's Bootstrap CSS blueprint as a jQuery UI theme. Even if you don't want to use Bootstrap as...
I have no idea how it's supposed to work (or why the don't have a print CSS), but...
Firefox, Opera and Internet Explorer will repeat elements with position: fixed on every printed page (see attached example).
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...