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 <string> | |
#include <thread> | |
#include <vector> | |
#include <mutex> // call once | |
#include <chrono> | |
namespace game { | |
using namespace std::literals::chrono_literals; |
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 <string> | |
#include <thread> | |
#include <vector> | |
#include <mutex> // call once | |
#include <chrono> | |
namespace game { | |
using namespace std::literals::chrono_literals; |
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> | |
template <const char sep = ' ', typename ... Args> | |
void println(Args ... args) { | |
((std::cout << args << sep), ...); | |
} | |
int main() | |
{ |
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
import argparse | |
import logging | |
import os | |
import shutil | |
import sys | |
import time | |
from abc import abstractmethod | |
from typing import List, Dict, Any | |
# Type aliases |
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> | |
int main(int argc, char** argv) { | |
std::cout << "Hello, World" << std::endl; | |
return 0; | |
} |
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> | |
template <const char sep = ' ', typename ... Args> | |
void print(Args ... args) { | |
((std::cout << args << sep), ...); | |
} | |
template <const char sep = ' ', typename ... Args> | |
void println(Args ... args) { |
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 <string> | |
namespace out { | |
struct OutConf { | |
std::string sep = " "; | |
std::string end = "\n"; | |
std::ostream& file = std::cout; | |
bool flush = false; |
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
def reverse_str(s: str): | |
accumulator_str = [] | |
index = len(s) | |
while index: | |
index -= 1 | |
accumulator_str.append(s[index]) | |
return ''.join(accumulator_str) | |
print(reverse_str("abcde")) |