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
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 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 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 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 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 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 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" |
OlderNewer