(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| describe('/blog', function() { | |
| it('returns blog posts as JSON', function(done) { | |
| api.get('/blog') | |
| .set('x-api-key', '123myapikey') | |
| .auth('correct', 'credentials') | |
| .expect(200) | |
| .expect('Content-Type', /json/) | |
| .end(function(err, res) { | |
| if (err) return done(err); |
| #!/bin/sh | |
| rpm -Uih https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| curl -L https://get.rvm.io | bash -s stable | |
| rvm install 2.0.0 | |
| rvm use 2.0.0@global --default | |
| # for chinese user, if you have a wonderful speed ignore this part | |
| # to have a faster download speed | |
| # switch gem source to ruby.taobao.org |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| from twisted.application import service | |
| from twisted.web import server, static | |
| from twisted.web.resource import Resource | |
| from twisted.web.wsgi import WSGIResource | |
| from twisted.internet import reactor | |
| from flask.views import MethodView |