Skip to content

Instantly share code, notes, and snippets.

" Optioni
"set cursorline " Highlights the current line in the editor
set hidden " Hide unused buffers
set autoindent " Indent a new line
set inccommand=split " Show replacements in a split screen
"set mouse=a " Allow to use the mouse in the editor
"set number " Shows the line numbers
set relativenumber " Shows the line numbers
set number relativenumber
set splitbelow splitright " Change the split screen behavior
@HenriqueMorato
HenriqueMorato / what_i_serialize.rb
Created January 10, 2024 16:59 — forked from crawler/what_i_serialize.rb
WHAT I SERIALIZE?
# frozen_string_literal: true
###############################################################################################
# WHAT I SERIALIZE? #
###############################################################################################
# This scrip can help you to find what object types you need to witelist after CVE-2022-32224 update
# AD: If you using StimulusJS then checkout my gem stimulus_tag_helper
# https://rubygems.org/gems/stimulus_tag_helper
# https://github.com/crawler/stimulus_tag_helper
<%= link_to 'Voltar', root_path %>
<%= link_to 'Registrar uma promoção', new_promotion_path, class: 'btn btn-success' %>
<%= form_with url: search_promotions_path, id: 'search-promotion', method: :get, local: false do |f| %>
<%= f.label :q, 'Busca' %>
<%= f.text_field :q %>
<%= f.submit 'Buscar' %>
<% end %>
@HenriqueMorato
HenriqueMorato / Gemfile
Created June 25, 2020 20:21 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
class Carta
attr_accessor :ingles, :portugues
def initialize(ingles, portugues)
@ingles = ingles
@portugues = portugues
end
def to_s()
"#{ingles()} -> #{portugues()}"