- Create a development branch on your local repository.
$ git checkout --track origin/development
- Work on your task as usual. Remember to make frequent commits to keep track of your progress.
$ git checkout -b task_name # Create the task branch
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
system("chcp 65001 > nul"); |
#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. | |
*/ |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using std::cout; | |
using Vector = std::vector<int>; | |
std::ostream& operator<<(std::ostream& out, const Vector& v) { | |
out << "["; |
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); | |
} |
#!\bin\bash | |
pactl -- set-sink-volume 0 +50% |
../vcpkg/vcpkg install --feature-flags=manifests,binarycaching |
#include <iostream> | |
#include <bitset> | |
#include <cmath> | |
#include <algorithm> | |
#include <map> | |
#include <numeric> | |
char firstNotRepeatingCharacter(const std::string& s) { | |
for (const auto& c: s) { | |
if (s.find_first_of(c) == s.find_last_of(c)) return c; |