This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
template<unsigned long n> | |
struct Factorial { | |
enum {value = n * Factorial<n-1>::value}; | |
}; | |
template<> | |
struct Factorial<0> { | |
enum {value = 1}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder