I just wanted a lazy way to arrange the information from ica0002/students/FLAK-ZOSO into an usable SSH command.
I hereby claim:
- I am flak-zoso on github.
- I am flak_zoso (https://keybase.io/flak_zoso) on keybase.
- I have a public key ASA9e94W2UQFRZCrDq_W_DdYqLeCL7tSRh2GRarqKPgk1Qo
To claim this, I am signing this object:
This file contains hidden or 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
| #!\usr\bin\env python3 | |
| if __name__ == '__main__': | |
| import sys, os | |
| version = sys.argv[1] | |
| os.system(f"python3 setup.py sdist") | |
| os.system(f"python3 -m twine upload dist/* --verbose") | |
| os.system(f"python3 -m pip install classeviva.py=={version}") | |
| os.system(f"python3 -m pip install classeviva.py=={version}") | |
| os.system(f"git add .") |
This file contains hidden or 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 <chrono> | |
| #include <thread> | |
| #include "include/sista/sista.hpp" | |
| // g++ swapTest.cpp -o swapTest -std=c++17 -Wall | |
| int main() { | |
| sista::SwappableField field(10, 10); | |
| std::vector<sista::Pawn*> pawns = { | |
| new sista::Pawn( |
This file contains hidden or 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
| #pragma once | |
| #include <queue> // std::queue, std::priority_queue | |
| #include <algorithm> // std::sort | |
| #include "field.hpp" // Field, Pawn | |
| struct Path { // Path struct - begin and end Coordinates of a path | |
| static int current_priority; // current_priority - priority of the current Path [counter] | |
| int priority; // priority - priority of the Path (used in operator<) |
This file contains hidden or 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 <stdlib.h> | |
| #include <windows.h> | |
| using namespace std; | |
| void SetColor(short Color) { | |
| HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); | |
| SetConsoleTextAttribute(hCon,Color); | |
| } |
This file contains hidden or 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
| with open('file.txt', 'r') as file: | |
| lines = file.read().split('\n') # lines is a list of the lines of the file | |
| dictionary: dict = {} | |
| for index, line in enumerate(lines): | |
| line = line.split(' ') | |
| dictionary[str(index)] = { | |
| "white": line[0], | |
| "black": line[1], | |
| "white score": line[2], | |
| "black score": line[4] |