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
public class Solution { | |
public BigInteger BinStrToInt(string s) { | |
BigInteger ret = 0; | |
for (int i = 0; i < s.Length; i++) | |
{ | |
ret <<= 1; | |
if (s[i] == '1') ret += 1; | |
} |
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
using System; | |
public class Model { | |
public int id; | |
public string name; | |
} | |
public class ModelHelper : Model { | |
public void update(Model m) { | |
id = m.id; |
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> | |
class A { | |
public: | |
static void p() { | |
std::cout<<"Hello World\n"; | |
} | |
}; | |
int main() { |
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
""" | |
Utils to generate cold-outreach emails for ZIoT Systems | |
""" | |
class KeyWords: | |
# implement this for better keyword replacing | |
pass | |
class EmailGen: | |
def __init__(self): |
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
using System; | |
using System.Threading; | |
class ABigOne | |
{ | |
public string someString; | |
public ABigOne(string s) | |
{ | |
someString = s; |
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 <stdio.h> | |
#include <stdlib.h> | |
#define VIRTUAL /* empty, used for read-ablilty */ | |
#define IMPL /* empty, used for read-ablilty */ | |
typedef void (*fp_callback)(void); | |
typedef struct Base { |
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 <functional> | |
using namespace std; | |
void ff(int y) { | |
cout << y << endl; | |
} | |
int main() { |
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
using System; | |
public class Config { | |
public string configStr = ""; | |
} | |
public class ConfigBuilder { | |
public delegate void Init(Config conf); | |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
typedef struct Node { | |
int data; | |
struct Node* left; | |
struct Node* right; | |
} Node; |
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> | |
class Node { | |
public: | |
int data; | |
Node* next; | |
static Node* head; | |
Node(int d) { | |
this->data = d; |