Add the following line to your Gemfile
gem "server_health_check-rails"
require "yaml" | |
require "json" | |
require "tempfile" | |
module RuboCopAutoCollrect | |
class << self | |
def run_all!(targets, *cop_names, commit_log_format:, fixup_commit_log_format:) | |
plan(targets, *cop_names).each do |cop_name| | |
run!(targets, cop_name, commit_log_format: commit_log_format) | |
end |
<%= form_with(model: billboard) do |form| %> | |
<%= tag.div class: "dropzone", data: { controller: "dropzone", dropzone_param_name_value: "billboard[images][]", dropzone_url_value: rails_direct_uploads_url, dropzone_accepted_files_value: "image/*", dropzone_max_files_value: 3, dropzone_max_filesize_value: 0.300 } do %> | |
<div class="dz-default dz-message flex flex-col items-center"> | |
<%= image_tag "upload.svg", size: 28, class: "colorize-black", aria: { hidden: true } %> | |
<h5 class="font-semibold mbs-4">Drop files here or click to upload.</h5> | |
<p class="text-sm text-subtle">Upload up to 10 files.</p> | |
</div> | |
<% end %> | |
<div class="inline-flex items-center mbs-2 mie-1"> |
# NOTE: Be sure to set the API key further down in the code! | |
require "net/http" | |
require "uri" | |
require "json" | |
class WIP | |
def initialize(api_key:) | |
@api_key = api_key | |
end |
# .circleci/config.yml | |
version: 2 | |
jobs: | |
lint: | |
environment: | |
- BUNDLE_GEMFILE: Gemfile.tools | |
docker: | |
# specify the version you desire here | |
- image: circleci/ruby:2.4.2-stretch-node-browsers | |
environment: |
# EC2 available volumes | |
aws ec2 describe-volumes \ | |
--filter Name=status,Values=available \ | |
--query "Volumes[].[VolumeId,Size,CreateTime,Tags[?Key=='Name'].Value|[0]]" \ | |
--output text | |
# EC2 stopped instances | |
aws ec2 describe-instances \ | |
--filter Name=instance-state-name,Values=stopped \ | |
--query "Reservations[].Instances[].[InstanceId,InstanceType,LaunchTime,Tags[?Key=='Name'].Value|[0]]" \ |
/* | |
Description | |
Using the window.setTimeout function will allow you to hide retargeting cookies and execute them after 45 seconds. | |
This helps provide higher quality leads/audience. The example below shows Facebook's pixel tracker. | |
It could be used for other pixel tracking services too. | |
Case Study @ http://imscalable.com/blog/case-study-retargeting-done-wrong/ | |
*/ | |
// Facebook Code |
rubocop -a `git diff --name-only --cached | grep '\.rb'` |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
require 'rubocop/rspec/language' | |
module RuboCop | |
module Cop | |
module RSpec | |
class AggregateFailures < RuboCop::Cop::Cop | |
GROUP_BLOCKS = RuboCop::RSpec::Language::ExampleGroups::ALL | |
EXAMPLE_BLOCKS = RuboCop::RSpec::Language::Examples::ALL | |
def on_block(node) |