A CLI for working with Postgres databases. Ships with auto-completion and syntax highlighting.
jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file...
RSpec::Matchers.define :be_naturally_sorted do match do |array| array == array.natural_sort end end See RSpec: Where to put custom...
Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...
If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...
If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
When you run code inside a $watch expression that forces a repaint (e.g. by computing an element's width, or...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.
When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...
If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...