See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // Display a developer-friendly error message when Turbo Frame fails to load. | |
| if (process.env.NODE_ENV === 'development') { | |
| document.addEventListener('turbo:frame-missing', async function (event) { | |
| event.preventDefault(); | |
| const frame = event.target; | |
| const response = event.detail.response; | |
| const frameId = frame.id; | |
| const url = response?.url || frame.src; |
| vim.diagnostic.config({ | |
| virtual_text = false | |
| }) | |
| -- Show line diagnostics automatically in hover window | |
| vim.o.updatetime = 250 | |
| vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] |
| class Formatter | |
| def formatted_phone(phone) | |
| phone.delete("^0-9") | |
| end | |
| end | |
| class Payment < Formatter | |
| def phone(phone) | |
| formatted_phone(phone) | |
| end |
| class Payment | |
| def formatted_phone(phone) | |
| phone.delete("^0-9") | |
| end | |
| end | |
| class Contact | |
| def formatted_phone(phone) | |
| phone.gsub(/[^0-9]/, '') | |
| end |
| module Formatter | |
| def self.included base | |
| base.extend ClassMethods | |
| end | |
| module ClassMethods | |
| def class_method | |
| "yahy" | |
| end | |
| end |
| require "active_support/concern" | |
| module M | |
| extend ActiveSupport::Concern | |
| included do | |
| has_many :things | |
| scope :disabled, -> { where(disabled: true) } | |
| after_commit :send_email | |
| validates :email, length: { maximum: 255 }, email: true |
| - Primeira coisa a se fazer no git: Configurar o global user e global email | |
| - Dia dia git, o que fazer quando ligo meu pc para trabalhar? | |
| - Diferença entre merge e rebase? Pra que servem? | |
| - https://blog.kitware.com/source/files/3_593278662_png | |
| - https://www.atlassian.com/git/tutorials/merging-vs-rebasing/conceptual-overview | |
| - Infinitos comandos git, logo um gitconfig pra facilitar as coisas. | |
| - Comandos úteis (avançados...?) | |
| - git branch -a | |
| - git cherry-pick -x | |
| - git commit -p |
| pra atualziar o changelog é | |
| dch -m --team "New upstream release" | |
| ou | |
| gbp dch | |
| para atualziar o upstream | |
| gbp import-orig --pristine-tar --uscan |