Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...
If you paste multiple lines of text into a cell, Calc's AutoCorrect will change the first character of the...
Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
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...