Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
template<unsigned long n>
struct Factorial {
enum {value = n * Factorial<n-1>::value};
};
template<>
struct Factorial<0> {
enum {value = 1};
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.gen
from tornado import httpclient
@tornado.gen.coroutine
def fetch_json(url):
response = yield httpclient.AsyncHTTPClient().fetch(url)