Skip to content

Instantly share code, notes, and snippets.

View judeaugustinej's full-sized avatar

Jude Augustine Job judeaugustinej

View GitHub Profile
@judeaugustinej
judeaugustinej / hello.py
Created December 15, 2016 05:34
Test Coverage for tornado app.
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.set_status(400)
self.write("Hello, world")
application = tornado.web.Application([
(r"/", MainHandler),
@judeaugustinej
judeaugustinej / hello.py
Last active December 15, 2016 06:29
Testing tornado app, using momoko
from tornado.ioloop import IOLoop
from tornado.httpserver import HTTPServer
from tornado.options import parse_command_line
from tornado import web
import momoko
class BaseHandler(web.RequestHandler):
@property
@judeaugustinej
judeaugustinej / gist:f15bb07f0072409bd9863654bfca4e82
Created April 20, 2017 13:31
Installing scala in ubuntu 14.04
sudo wget www.scala-lang.org/files/archive/scala-2.12.2.deb
sudo dpkg -i scala-2.12.2.deb
sudo apt-get update
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
@judeaugustinej
judeaugustinej / gist:2779eff1ffbde681ccf5f4b6a0f56458
Created April 22, 2017 07:50
Error message while installing python packages
* Error msg one
```
-error-command-x86-64-linux-gnu-gcc-failed-with-exit-status 1
```
* Fix
```
sudo apt install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev
```
* Error msg two