Skip to content

Instantly share code, notes, and snippets.

View bugaevc's full-sized avatar

Sergey Bugaev bugaevc

View GitHub Profile
from tornado.httpclient import AsyncHTTPClient
import tornado.gen
import tornado.ioloop
import timeit
@tornado.gen.coroutine
def make_request(index):
client = AsyncHTTPClient()
print(index, 'started')
response = yield client.fetch('http://google.com', raise_error=False)
@bugaevc
bugaevc / prefix_notation.c
Created March 1, 2015 14:25
Homework task #2
#include <stdio.h>
#include <stdlib.h>
void report_error(char *s)
{
printf("syntax error: expected %s\n", s);
}
@bugaevc
bugaevc / area_calculation.c
Last active August 29, 2015 14:15
Homework task
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define F(x) (f(x)-g(x))
#define F1(x) (f1(x)-g1(x))
typedef double (*func)(double);
double root(func f, func g, func f1, func g1, double a, double b, double eps1)