If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);
Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...
Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...
The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...
Some tasks in a web application are better not done live when a user request a page, but in the...
This is a guide on how to effectively use Git when working on a feature branch. It is designed to...
Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...
When working with PostgreSQL, you can use pgAdmin as a GUI. While you can do most things just like on...
Article shows how to make a script that fakes one kind of content when printed with cat, but uses different...
As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...
In the DevTools settings, there's a "Shortcuts" section. Found these keyboard shortcuts there: General ESC Toggle drawer
Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class
With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...
Bash stores the exitcodestatus of piped commands in the environment variable PIPESTATUS So you can just echo ${PIPESTATUS[@]} to get...
Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...
If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...
We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...
When starting a project we always make a good estimate of all known requirements, and plan budgets and available developers...
You have the following HTML structure:
If you want to run Javascript code whenever someone clicks on a ...
..., you...
If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...
Many of our clients can't or don't want to design their user interfaces. In the absence of a...
Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...