Follow these steps to install graphite on OS X Mavericks.
- Homebrew
- Python 2.7
- Git
object blog { | |
object events { | |
sealed trait PostEvent | |
case class PostCreated(title: String) extends PostEvent | |
case class PostRenamed(id: Long, name: String) extends PostEvent | |
class EventStream() { |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.16300885379314423</real> | |
<key>Green Component</key> | |
<real>0.16304571926593781</real> |
package s | |
object Test { | |
// Observe that x.companion is statically typed such that foo is callable | |
def f1() = { | |
val x = new Foo | |
println(x) // Foo instance | |
println(x.companion) // Foo companion | |
println(x.companion.foo) // I'm foo! |
/** | |
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> | |
*/ | |
package akka.contrib.mailbox | |
import scala.concurrent.duration._ | |
import java.util.concurrent.atomic.AtomicInteger | |
import java.util.concurrent.atomic.AtomicLong | |
import com.typesafe.config.Config | |
import akka.actor.{ ActorContext, ActorRef, ActorSystem, ExtendedActorSystem } |
If you're someone for whom code speaks louder than words, here's a branch to ponder: https://github.com/typelevel/cats-effect/tree/ce3
The following is a proposal for Cats Effect 3, collaboratively devised over the last few months by several of the maintainers and contributors to the library. I will frequently use first-person in this document (because I'm lazy), which is posted under my name (ditto), but it really was a joint effort. As with any joint effort, there has definitely been some healthy debate about several of the concepts in this proposal. For reference, these are the things we're the least sure about:
Concurrent
now takes two type parameters, and thus is somewhat less ergonomicRegion
has been added, along with some complex associated machinery
Safe.Case
typeSync
being stack-safe)REVISION=$1 && | |
BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') && | |
git reset --hard $REVISION && | |
MSG="revert $BRANCH to ${REVISION}" && | |
git merge -s ours @{1} -m "${MSG}" && | |
echo $MSG |