- Word Counter - wordcounter.world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# Activate the gem you are reporting the issue against. | |
gem 'rails', github: "marcelolx/rails", branch: "issue-25718" | |
gem 'sqlite3' | |
end | |
require 'active_record' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails", branch: "main" | |
gem "sqlite3" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rspec/expectations" | |
# This matcher merges the provided hash into the actual hash and compares if the merged hash stays the same after the merge | |
# | |
# The difference between other aproaches is that here we don't override a nested hash, this means that the actual value being like the hash below | |
# { abc: "def", nested: { erf: "tre", tuc: "abc" } } | |
# when compared with this hash below | |
# { abc: "def", nested: { erf: "tre" } } | |
# will not replace override the nested hash from `nested: { erf: "tre", tuc: "abc" }` to `nested: { erf: "tre" }` | |
# and yes, will just merge the keys of the provided hash with the actual hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adds : after labels */ | |
form label:after{ | |
content:":"; | |
} | |
/* Adds * after required labels */ | |
form label.required:after{ | |
content:"*"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/hide_sql_from_errors.rb | |
# Monkey patch ActiveRecord to not show executed statements in production errors. | |
# Without this patch, error reporting services such as AppSignal would receive | |
# sensitive data used in failed queries. | |
# Use `class_eval` on AbstractAdapter instead of first defining a module and | |
# then including it, because otherwise our patch would sometimes be overridden | |
# by Rails' class autoloading | |
ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "l" ]; then | |
$ANDROID_HOME/emulator/emulator.exe -list-avds | |
elif [ "$1" = "r" ]; then | |
$ANDROID_HOME/emulator/emulator.exe -avd $2 | |
else | |
echo "Para listar os AVDs |-> ./andemu.sh l" | |
echo "Para executar um AVD |-> ./andemu.sh r nomeAVD" | |
fi |
NewerOlder