It's a mistake to use typedef for structures and pointers. When you see a
vps_t a;
in the source, what does it mean?
In contrast, if it says
Para fazer o git usar um servidor proxy, utilize o seguinte comando:
git config --global http.proxy http://YOUR_PROXY_USERNAME:[email protected]:8080
YOUR_PROXY_USERNAME
=> como é comum o uso de um email para o USERNAME
, é necessário utilizar no lugar do @
do email, o seguinte código pwd%40123
.
alias.st = status -s -b -u | |
alias.lg = log --graph --format=format:'%C(blue)%h%C(auto)%d %s %C(bold black)(%ar) %an' |
function fish_prompt | |
# This prompt shows: | |
# - green lines if the last return command is OK, red otherwise | |
# - your user name, in red if root or yellow otherwise | |
# - your hostname, in cyan if ssh or blue otherwise | |
# - the current path (with prompt_pwd) | |
# - date +%X | |
# - the current virtual environment, if any | |
# - the current git status, if any, with fish_git_prompt | |
# - the current battery state, if any, and if your power cable is unplugged, and if you have "acpi" |
import UIKit | |
public extension UIView { | |
@discardableResult | |
func subviews(@SubviewsBuilder _ subviews: () -> [UIView]) -> UIView { | |
subviews().forEach { self.customAddSubview($0) } | |
return self | |
} |
// Antes | |
view.addSubview(title) | |
view.addSubview(stackHorizontal) | |
stackHorizontal.addArrangedSubview(icon) | |
stackHorizontal.addArrangedSubview(text) | |
view.addSubview(description) | |
view.addSubview(button) | |
// Depois | |
view.subviews { |
import Foundation | |
import UIKit | |
final class KeyboardSizeManager { | |
private weak var bottomConstraint: NSLayoutConstraint? | |
private var oldValue: CGFloat |