Skip to content

Instantly share code, notes, and snippets.


Jordan Cristiano SizzlingCalamari

View GitHub Profile
View gist:5893b7d8710646430652
#include <iostream>
using namespace std;
int main() {
unsigned int data;
cin >> std::hex;
cout << std::hex;
while (cin >> data)
cout << data << endl;
View dem boyz
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
template<typename BufType, typename FnType, typename ContextType>
bool NetMsgFuncRunner(const FnType* netHandlers, uint32_t type, BufType& buf, ContextType& context, void* data)
if (type >= ARRAY_SIZE(netHandlers))
return false;
return netHandlers[type](buf, context, data);