Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <array>
#include <tuple>
template<size_t N, typename...T, template<typename, size_t = N> typename...Ts>
constexpr auto zip(Ts<T> const&...args) {
using Tp = std::tuple<T...>;
std::array<Tp, N> result;
I( trying to compile with g++ bla.cc -O3 --std=c++11 -S -fdump-tree-all -fdump-rtl-all
L__routine_start_main_0:
main:
pushq %rbp #65.12
movq %rsp, %rbp #65.12
andq $-128, %rsp #65.12
pushq %r12 #65.12
pushq %r13 #65.12
pushq %r14 #65.12
subq $232, %rsp #65.12
movl $3, %edi #65.12
<link rel="import" href="../Polymer/polymer.html">
<link rel="import" href="contact.html">
<polymer-element name="ff-userlist" attributes="online contactsonline">
<template>
<template repeat="{{ contact in contactsonline }}">
<ff-contact servicenick="{{ contact.serviceNick }}"></ff-contact>
<br/>
</template>
</template>
#ifndef BOOST_NETWORK_UTILS_BASE64_HPP_20130820
#define BOOST_NETWORK_UTILS_BASE64_HPP_20130820
// Copyright 2010 Dean Michael Berris.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
namespace boost { namespace network { namespace utils {
// Copyright 2010 (C) Dean Michael Berris
// Copyright 2012 Google, Inc.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
namespace network {
namespace http {
@nico159
nico159 / meta
Created June 11, 2013 21:54
Testing C++ metaprogramming
#include <iostream>
template <typename T>
struct Identity
{
typedef T result;
};
template <typename T, T v>
struct Constant
descrizione = "ForumFree RPG";
function CreaturaMizucoso () {
var nome = "Mizucoso",
hp = NaN,
categoria = 'staffer in incognito',
attacchi = { 'banDalCircuito': 1000, 'ignora': 300, 'postaPorcella': 100, 'evocaKostakishi': 999999 };
}
function CreaturaAny () {
nico159@nico159-300E4A-300E5A-300E7A:~/Scrivania/eclipse/k/TestingHaskell/src$ time ./Main
[-37154,-8678,-25110,-38860,-22789,-17089,-42698,-36718,-21562,-29502,-10968,-38521,-13146,-21618,-19170,-45859,-38622,-42837,-22877,-5384,-44527,-34405,-30811,-10130,-36496,-13487,-24150,-24028,-29742,-17823,-45187,-8438,-9969,-14330,-7040,-23560,-32972,-5151,-20782,-42421,-45256,-37174,-8588,-29316,-48330,-49062,-7146,-13095,-1950,-1787,-24946,-31500,-40674,-13808,-12764,-9405,-23263,-11418,-19715,-37166,-47405,-15267,-22846,-18893,-19764,-37645,-13201,-29505,-34078,-8441,-47112,-2991,-27271,-32825,-43729,-39985,-34388,-14154,-14695,-18076,-20720,-34567,-33205,-36609,-33889,-11025,-6429,-27171,-40798,-30306,-11461,-23646,-32198,-21350,-30653,-17606,-3541,-3802,-20409,-789,-36653,-42525,-37907,-9226,-45082,-25006,-23411,-8000,-5674,-2267,-19219,-36335,-12752,-31754,-16998,-41569,-25451,-10060,-6497,-1171,-47123,-44582,-49236,-11859,-29372,-8463,-47617,-9939,-45494,-43807,-12491,-6237,-13448,-48969,-23653,-34470,-15708
<script type="text/javascript">
window.emoticons = Object.freeze({
':)': 'http://img.forumfree.net/html/emoticons/smile.gif',
':D': 'http://img.forumfree.net/html/emoticons/biggrin.gif',
';)': 'http://img.forumfree.net/html/emoticons/wink.gif',
':P': 'http://img.forumfree.net/html/emoticons/tongue.gif',
'^_^' : 'http://img.forumfree.net/html/emoticons/happy.gif',
'-_-' : 'http://img.forumfree.net/html/emoticons/sleep.gif',
':(': 'http://img.forumfree.net/html/emoticons/sad.gif',
':rolleyes:' : 'http://img.forumfree.net/html/emoticons/rolleyes.gif'