This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.concurrent.Future | |
object either { | |
// Scala standard library Either is sometimes used to distinguish between 'failure' and 'success' state. Like these two methods: | |
def getUser(id: String): Either[String, User] = ??? | |
def getPreferences(user: User): Either[String, Preferences] = ??? | |
// The Right side contains the success value by convention, because right is right, right? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
# Convert org-mode files. | |
require 'org-ruby' | |
class OrgConverter < Converter | |
safe true | |
def setup | |
# No-op | |
end |