Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...
From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
Dashboard (Marvel Kibana) and query tool (Marvel Sense) for Elasticsearch. Once installed you can access Kibana and Sense at these...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...
You know that Devise offers RSpec test helpers for controller specs. However, in request specs, they will not work.
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
You can configure a stat socket for haproxy in the global section of the configuration file: global daemon
With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...
Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...
git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...
One useful postgres command I stumbled upon recently was \x. It gives you an expanded display which allows you to...
If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);
When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...
You can say this in Javascript: $.fn.jquery => "1.11.1"
Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...