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 <class T, class U> void binder(const T& ref, const U& other); | |
class A | |
{ | |
int a, b; | |
public: |
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 <atomic> | |
#include <thread> | |
const int COUNT = 300; | |
using namespace std; | |
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
#include <iostream> | |
using namespace std; | |
class Tree | |
{ | |
struct Node | |
{ | |
int data; |
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 <vector> | |
#include <string> | |
#include <cstring> | |
static int split(const char* str, char delim, std::vector<std::string>& out) | |
{ | |
const char* begin = str; | |
const char* it = strchr(str, delim); | |
if (it != NULL) |
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
// IVZ | |
#include "CLRHostNet2.h" | |
#pragma region Includes and Imports | |
#include <windows.h> | |
#include <metahost.h> | |
#pragma comment(lib, "mscoree.lib") |
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 <algorithm> | |
#include <vector> | |
#include <functional> | |
#include <optional> | |
int foo(int i) | |
{ | |
return i + 10; |
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
<({ # open tag | |
(data: [1,2,3,4]); | |
{key : "value"}; | |
{key: <({ #nesting | |
})>} | |
>)} #close tag |
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> | |
#if 0 | |
#define BINDABLE \ | |
template<typename Type1, typename Type2> \ | |
friend void* bind(const Type1& t1, const Type2& t2); \ | |
\ | |
template<typename Type1, typename Type2> \ | |
friend void* bind(Type1* t1, Type2* t2); \ | |
\ | |
template<typename Type1, typename Type2> \ |
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 <assert.h> | |
#include <random> | |
#include <string.h> | |
union lu_val | |
{ | |
long long val; | |
struct |
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 <time.h> | |
#include <math.h> | |
#include <map> | |
#define LOOPSIZE 100000 | |
union fract_u | |
{ | |
float dval; |