Put inside user's key bindings.
[
// Missing accented characters fix.
// a, [á, å, ä]
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
# frozen_string_literal: true | |
# Alerts of SQL queries made within views. | |
# | |
# https://www.driftingruby.com/episodes/improving-partial-loading-performance | |
module StrictQueries | |
class SQLWithViewError < StandardError; end | |
module Concern | |
extend ActiveSupport::Concern |
Note: Using StandardJS rules.
function * range(start, end, step = 1) {
while (start <= end) {
yield start
git reset HEAD^ path/to/file/to/revert
git commit --amend
Source: https://superuser.com/a/229296
Make the container of an image keep the size and aspect ratio of the image.
.intrinsic-ratio-container {
position: relative;
padding-bottom: 56.285714%; /* This defines the aspect ratio. */
height: 0;
color: #ddd; /* Same color as background-color to hide the image description text. */
# Inside controller action.
send_data data, filename
To automatically open pages saved when using save_and_open_page
we need to add the launchy gem to the test environment.
# Gemfile
group :test do
gem 'launchy', '~> 2.4', '>= 2.4.3'
end