extends Area2D
@export var speed = 400 # Quão rápido o jogador se moverá (pixels/segundo).
var screen_size # Tamanho da janela do jogo.
# Chamado quando o nó entra na árvore de cenas pela primeira vez.
# A função _ready() é chamada quando um nó entra na árvore de cenas, o que é um bom momento para descobrir o tamanho da janela do jogo:
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
git clone https://gitlab.com/cttc-lena/ns-3-dev.git | |
cd ns-3-dev | |
cd contrib | |
git clone https://gitlab.com/cttc-lena/nr.git | |
cd nr | |
git branch -r --list v2x-v | |
git checkout 5g-lena-v2x-v0.3.y | |
cd ../.. | |
git checkout -b v2x-lte-dev origin/v2x-lte-dev | |
git tag -l "v2x" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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
system("chcp 65001 > nul"); |
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
#include <iostream> | |
#include <vector> | |
using std::cout; | |
using Inputs = std::vector<std::string>; | |
/* | |
Find different parts of a string when it is sliced into 3 parts. | |
*/ |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using std::cout; | |
using Vector = std::vector<int>; | |
std::ostream& operator<<(std::ostream& out, const Vector& v) { | |
out << "["; |
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
bool approximatelyEqual(float a, float b, float epsilon) | |
{ | |
return fabs(a - b) <= ( (fabs(a) < fabs(b) ? fabs(b) : fabs(a)) * epsilon); | |
} | |
bool essentiallyEqual(float a, float b, float epsilon) | |
{ | |
return fabs(a - b) <= ( (fabs(a) > fabs(b) ? fabs(b) : fabs(a)) * epsilon); | |
} |
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
#!\bin\bash | |
pactl -- set-sink-volume 0 +50% |
NewerOlder