Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
/** | |
* Example of ZeroMQ pub/sub usage for C++11. | |
*/ | |
#include <zmqpp/zmqpp.hpp> | |
#include <iostream> | |
#include <chrono> | |
#include <thread> | |
using namespace std; |
1. Forming subjunctive |
1. Generic Identity MetaFunction( C++ 17) | |
2. Dynamic Polymorphism with Metaclasses and Code Injection |
int LinearIndex(lua_State*L, int row, int col) { | |
// Push the GetIndex function on the stack | |
lua_getglobal(L, "GetIndex"); | |
// Stack: function (GetIndex) | |
// Push the row variable on the stack | |
lua_pushnumber(L, row); | |
// Stack: function (GetIndex), int (row) | |
// Push the col variable on the stack |
#include <iostream> | |
#include <lua.hpp> | |
using namespace std; | |
class Lua | |
{ | |
private: | |
lua_State* m_pLuaState{ nullptr }; | |
bool m_IsThread{ false }; |
#include <iostream> | |
#include "lua.hpp" | |
#include <vector> | |
using namespace std; | |
namespace | |
{ | |
int Sum(lua_State *L) | |
{ |
#include <iostream> | |
#include "lua.hpp" | |
#include <vector> | |
using namespace std; | |
class Lua | |
{ | |
private: | |
lua_State* m_pLuaState{ nullptr }; |
#include <iostream> | |
#include "lua.hpp" | |
using namespace std; | |
class Lua | |
{ | |
private: | |
lua_State* m_pLuaState{ nullptr }; |
à - \ (the key above "Enter", "|" is also shown on it) | |
â - [, a (the key right of "P", then "a") | |
æ - RCtrl+a (Right-Ctrl together with "a"; Note: Left-Ctrl will not work) | |
ç - ] (the key above "Enter") | |
è - ' (the key left of "Enter", """ is also shown on it) | |
é - / (the key left of Right-Shift, "?" is also shown on it) | |
ê - [, e (the key right of "P", then "e") | |
ë - {, e (Shift together with [, then "e") | |
î - [, i (the key right of "P", then "i") | |
ï - {, i (Shift together with [, then "i") |