tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
Here are a few common patterns that will probably lead to flaky specs. If you notice them in your specs...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
You have uncommited changes (you can always check by using git status), which you want to discard.
Ruby's standard library includes a class for creating temporary directories. Similar to Tempfile it creates a unique directory name...
When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...
If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...
Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...
Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...
Note Use yarn dedupe in Yarn v2+: https://yarnpkg.com/cli/dedupe This package only works with Yarn v1. Yarn v2 supports...
tl;dr The :is() pseudo selector - specificity of its most specific argument - matches against a comma-separated list of selectors...
tl;dr The :where() pseudo selector - zero specificity - matches against a comma-separated list of selectors. Example Compound selectors like...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...
When changing code in mailers, updating the corresponding mailer preview can be forgotten very easily. Mailer previews can be tested...
Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...
tl;dr With ES2021 you now can use str.replaceAll(), Promise.any(), logical assignment operators, numeric separators and WeakRef on all major...
There is a way to use multiple databases in Rails. You may have asked yourself how you're able to...
The $gemname.gemspec file adds metadata to your Gem. You can provide links to your Github bugtracker or changelog file that...
You can use Unpoly's up.on with a named listener function and immediately unbind this event listener with { once: true...
In Chrome DevTools you can use getEventListeners(object) to get a list of registered event listeners on the specified object...