This file contains hidden or 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
| Just insert on .gitconfig: | |
| nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
| And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
| $ git nbr test | |
| Total 0 (delta 0), reused 0 (delta 0) | |
| To <your remote here> | |
| * [new branch] work -> test |
This file contains hidden or 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
| class Foo | |
| class << self | |
| attr_reader :ivar | |
| end | |
| @ivar = 'Hello!' | |
| end | |
| class Bar < Foo | |
| @ivar = 'World' | |
| end |
This file contains hidden or 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 'active_support/string_inquirer' | |
| require 'benchmark' | |
| # classe | |
| class ClientExternalData | |
| # o método com o inquirer/method_missing | |
| def identifier | |
| ActiveSupport::StringInquirer.new('uuid') | |
| end |
This file contains hidden or 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
| class Test | |
| end |
This file contains hidden or 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
| class Test | |
| def initialize | |
| puts 'Inicializando um teste ...' | |
| end | |
| end |
This file contains hidden or 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
| From f0af0ed80173a0a3ff0ed1316bdb09ba64b518f0 Mon Sep 17 00:00:00 2001 | |
| From: Eustaquio Rangel <[email protected]> | |
| Date: Thu, 21 Dec 2023 16:12:23 -0300 | |
| Subject: [PATCH] Construtor | |
| --- | |
| test.rb | 3 +++ | |
| 1 file changed, 3 insertions(+) | |
| diff --git a/test.rb b/test.rb |
This file contains hidden or 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
| { | |
| "Version": "24.10", | |
| "OEM": { | |
| "Vendor": "Dell Inc.", | |
| "Product": "Latitude 5440", | |
| "Family": "Latitude" | |
| }, | |
| "BIOS": { | |
| "Vendor": "Dell Inc.", | |
| "Version": "1.20.2" |
This file contains hidden or 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
| # Repositórios padrão | |
| sudo apt install neovim | |
| sudo snap install nvim –classic | |
| # PPA | |
| sudo add-apt-repository ppa:neovim-ppa/stable -y # stable | |
| sudo add-apt-repository ppa:neovim-ppa/unstable -y # unstable | |
| sudo apt update | |
| sudo apt install neovim |
This file contains hidden or 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
| " utilizando fold method como fold-marker, onde os comentários podem indicar folds | |
| " vim:fdm=marker | |
| " configurações básicas {{{ | |
| " não precisamos ser totalmente compatíveis com o Vi! | |
| set nocompatible | |
| " habilita syntax highlight | |
| syntax on | |
| " }}} |
This file contains hidden or 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
| " mostra caracteres que ficam escondidos: | |
| " tab: dois caracteres, um para a tab e outro para ocupar o espaço da tab | |
| " trail: caracter para espaços extras (sobrando no final de linha) | |
| " extends: mostra quando wrap está desligado e a linha excede o limite | |
| " precedes: mostra quando wrap está desligado e tem texto antes | |
| set listchars=tab:▸\ ,trail:·,extends:>,precedes:< | |
| " mostra os caracteres definidos acima | |
| set list |