(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.
| # Load DSL and Setup Up Stages | |
| require 'capistrano/setup' | |
| # Includes default deployment tasks | |
| require 'capistrano/deploy' | |
| # Rails (includes bundler, rails/assets and rails/migrations) | |
| require 'capistrano/rails' | |
| # Whenever |
| require 'llvm/core' | |
| require 'llvm/execution_engine' | |
| require 'llvm/transforms/scalar' | |
| class Generator | |
| attr_accessor :ptr | |
| def build(code,name, mod) |
| require 'bundler' | |
| Bundler.require | |
| url = 'http://0.0.0.0:9000/images/avatar.png' | |
| EM.run do | |
| http = EventMachine::HttpRequest.new(url).get | |
| http.stream {|chunk| print [:chunk, chunk.size] } | |
| http.headers {|h| p [:headers, h] } |
| require 'eventmachine' | |
| require 'net/dns' | |
| require 'net/dns/resolver' | |
| module EM # :nodoc: | |
| module Protocols | |
| include Logger::Severity | |
| class AsyncResolver < Net::DNS::Resolver |