(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.
defmodule Foo.Factory do | |
alias Foo.Blog.{Post, Comment} | |
def params_for(Post) do | |
%{ | |
title: Faker.Lorem.sentence(), | |
body: Faker.Lorem.paragraph() | |
} | |
end |
defmodule MonadError do | |
defmacro __using__(_) do | |
quote do | |
import MonadError, only: [bind: 1, fail: 1, fail: 0, with: 3, either: 3, sandbox: 1] | |
require MonadError | |
end | |
end | |
defmacro sandbox(body) do |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
(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.
Tired of waiting for emacs to start on OS X? This step by step guide will
teach you how to install the latest version of emacs and configure it to start
in the background (daemon mode) and use emacsclient
as your main editor.
Download the latest pretest version of [Emacs for Mac OS X]: http://emacsformacosx.com/builds