For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Monterey.
Make sure openssl
is installed on Mac via Homebrew.
<input id="input-id" placeholder="MM/DD" maxlength="5"> | |
<script src="./mmdd_mask.js"></script> | |
<script> | |
var el = document.getElementById('#input-id'); | |
var mmddMask = new MMDDMask(el); | |
</script> |
# See https://stackoverflow.com/a/63740582/1415262 | |
class TinymceController < ApplicationController | |
skip_forgery_protection | |
respond_to :json | |
def spellcheck | |
suggestions = check_spelling_new( | |
spellcheck_params[:text], |
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Monterey.
Make sure openssl
is installed on Mac via Homebrew.
let time = 10; // Increase this if you're getting typing errors | |
function pressKey(key, code, eventType = 'keypress') { | |
console.log(`Typing "${key}" (${code}) with event ${eventType}`); | |
let event = new KeyboardEvent(eventType, { | |
key: key, | |
keyCode: code, | |
which: code, | |
charCode: code |
// Just open a test page on typing.com and run this on the browser console: | |
// Tested on Safari. | |
// If you get errors, increase the setTimeout time. | |
$('.letter').each(function(i) { | |
setTimeout(() => { | |
const text = $(this).text(); | |
let char = text; | |
let charCode = char.charCodeAt(0); |
--- | |
- name: Find user home | |
set_fact: | |
user_home: "{{ ansible_env.HOME }}" | |
- name: Set rbenv dir | |
set_fact: | |
rbenv_dir: "{{ user_home }}/.rbenv" | |
- name: Set rbenv bin path |
vars: | |
timezone: America/Sao_Paulo | |
- name: Get current MySQL timezone | |
become: yes | |
mysql_variables: | |
variable: time_zone | |
register: mysql_tz | |
- set_fact: |
I hereby claim:
To claim this, I am signing this object:
# See: https://github.com/thoughtbot/clearance/blob/3e9529a643cff20beb9bb49eacedb90dee49d465/lib/clearance/testing/controller_helpers.rb | |
class ClearanceAuth < DerailedBenchmarks::AuthHelper | |
def setup | |
require 'clearance/session' | |
@user = User.first # Change to fit your needs | |
end | |
def call(env) | |
env[:clearance] = Clearance::Session.new(env) |
pt-BR: | |
errors: | |
or: "ou" | |
array?: "deve ser um array" | |
empty?: "deve estar vazio" | |
excludes?: "não pode incluir %{value}" | |
excluded_from?: |