MutationObserver provides developers a way to react to changes in a DOM. Any: insertion, deletion, attribute change – anything. Quickstart: https://...
With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...
git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...
When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...
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...
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
With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...
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...
If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...
Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...
It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...
Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...
I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...
If you need a postgresql extension for your database it isn't a good idea to give your applications database...