screen -S server
screen -XS foo quit
screen -R foo
// arrcontainer cc = arrcontainer(20); | |
int* ip = (int* )realloc(cc, sizeof(int)*10); | |
// int* ip = (int* )calloc(8, 1000); | |
ip[1] = 10; | |
cout << *ip; |
int *arr = new int[10]; | |
int *ptr = arr; | |
int *ptr_new; | |
ptr_new = (int *)realloc(ptr, sizeof(int)*3); | |
ptr_new = (int *)realloc(ptr, sizeof(int)*3); |
#include <iostream> | |
using namespace std; | |
int main(int argc, char const *argv[]) | |
{ | |
int *cc = new int[20]; | |
int size = 0; | |
for (size_t i = 0; i < 5; i++) |
int readInt(string output = "") | |
{ | |
cout << output; | |
int input = 0; | |
bool valid = false; | |
// while the input isnt correct. keep asking | |
// istream (cin) will flag itself if there was an issue reading | |
// eg. a char was entered | |
while (!valid) | |
{ |
xinput --set-prop "Razer Razer DeathAdder" "libinput Accel Speed" -0.95 | |
xinput --set-prop "Razer Razer DeathAdder" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 | |
xinput --set-prop "Razer Razer DeathAdder" "libinput Accel Profile Enabled" 0, 1 |
from range_regex import bounded_regex_for_range | |
a = input('Enter your input:') | |
b = input('Enter your input:') | |
print(bounded_regex_for_range(int(a), int(b))) |
// fix launch.json by adding this. | |
// make sure to change the gcc version, currently on 9.2.0 | |
// check with: ``c++ --version`` | |
// reference | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true |
# Beware this will not create a subfolder for RepoB in RepoA | |
If you want to merge project-b into project-a: | |
cd path/to/project-a | |
git remote add project-a path/to/project-b | |
git fetch project-b --tags | |
git merge --allow-unrelated-histories project-b/master | |
git remote remove project-b |