Skip to content

Instantly share code, notes, and snippets.

@IvanVergiliev
IvanVergiliev / typelist.cc
Created August 31, 2012 22:09
Partial implementation of the TypeList functionality from Modern C++ Design
#include <cstdio>
#include <limits>
#include <iostream>
using namespace std;
class NullType {};
template<typename T, typename U>
class TypeList {
@IvanVergiliev
IvanVergiliev / power.cc
Created July 12, 2015 12:57
Compile time Fibonacci
#include <cstdio>
#include <array>
using std::array;
const int MOD = 1000;
class ArrayWrapper {
const array<int, 2>& value;
var HelloMessage = React.createClass({
render: function() {
return <script>function f() { var a = 5; }</script>;
}
});