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
| @echo off | |
| setlocal | |
| REM 현재 디렉토리에서 git commit code 기록 | |
| for /f "delims=" %%i in ('git rev-parse --short HEAD') do set current_commit=%%i | |
| REM commit code를 target/ConsoleLaunch/git_version.txt에 기록 | |
| echo Current Directory Commit: %current_commit% > target/ConsoleLaunch/git_version.txt | |
| echo Commit codes have been recorded in target/ConsoleLaunch/git_version.txt |
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> | |
| template <typename T> | |
| class Singleton | |
| { | |
| protected: | |
| Singleton() {} | |
| public: | |
| static T& getInstance() |
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 <filesystem> | |
| // *** OS : Windows | |
| // *** Compiler : C++17 | |
| int directory_exist() | |
| { | |
| std::string dir = "C:\\test"; | |
| namespace fs = std::filesystem; |
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> | |
| bool isPrime(const int &num) | |
| { | |
| if(num < 2) return false; | |
| for(int i = 2; i*i <= num; ++i) | |
| { | |
| if(num % i == 0) return false; | |
| } | |
| return true; |
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 <vector> | |
| #include <string> | |
| #include <algorithm> | |
| std::vector<std::string> parseLine(std::string input, std::string del) | |
| { | |
| std::vector<std::string> result; | |
| std::string parse = ""; |
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 "Timer.h" | |
| void Timer::start() | |
| { | |
| m_StartTime = std::chrono::system_clock::now(); | |
| m_bRunning = true; | |
| } | |
| void Timer::stop() | |
| { |