Follow these steps to install graphite on OS X Mavericks.
- Homebrew
- Python 2.7
- Git
| import com.yammer.metrics.Metrics; | |
| import com.yammer.metrics.core.*; | |
| import com.yammer.metrics.reporting.GraphiteReporter; | |
| import com.yammer.metrics.reporting.SocketProvider; | |
| import com.yammer.metrics.stats.Snapshot; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| /** |
Here's where I understand the state of the art to be:
| {-# Language GADTs #-} | |
| module Homomorphisms where | |
| import Control.Monad | |
| import Control.Applicative | |
| import Data.Monoid hiding (Endo) | |
| import qualified Control.Category as C |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| module Partiality where | |
| import Control.Monad.Free | |
| type Partiality = Free Maybe | |
| never :: Partiality a | |
| never = Free $ Just never | |
| bad :: Partiality a |
| scala> import scala.language.experimental.macros | |
| import scala.language.experimental.macros | |
| scala> import scala.reflect.macros.{ Context, TypecheckException } | |
| import scala.reflect.macros.{Context, TypecheckException} | |
| scala> object NoncompilationTests { | |
| | def compiles(code: _): Boolean = macro compiles_impl | |
| | def compiles_impl(c: Context)(code: c.Tree) = c.literal( | |
| | try { |
| (({}+[])[!![]+!![]+!![]]+[]+(![]+[])[+!![]]+(+(!![]+!![]+!![]+[]+(+!![])))[(!![]+[])[+![]]+[]+({}+[])[+!![]]+[][(![]+[])[!![]+!![]+!![]]+[]+(![]+[])[!![]+!![]]+([][![]]+[])[!![]+!![]+!![]+!![]+!![]]+({}+[])[!![]+!![]+!![]+!![]+!![]]+(!![]+[])[!![]+!![]+!![]]][({}+[])[!![]+!![]+!![]+!![]+!![]]+[]+(![]+[])[+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]](+[![]]+[]+(!![]+[])[({}+[])[!![]+!![]+!![]+!![]+!![]]+[]+({}+[])[+!![]]+([][![]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+![]]+(!![]+[])[+!![]]+([][![]]+[])[+![]]+({}+[])[!![]+!![]+!![]+!![]+!![]]+(!![]+[])[+![]]+({}+[])[+!![]]+(!![]+[])[+!![]]])[(![]+[])[+![]]+[]+([][![]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(!![]+[])[+![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+!![]]]([][({}+[])[!![]+!![]+!![]+!![]+!![]]+[]+({}+[])[+!![]]+([][![]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+![]]+(!![]+[])[+!![]]+([][![]]+[])[+![]]+({}+[])[!![]+!![]+!![]+!![]+!![]]+(!![]+[])[+![]]+({}+[])[+!![]]+(!![]+[])[+!![]]][({}+[])[!![]+!![]+!![]+!![]+!![]]+[]+({}+[])[ |
Couldn't find the text of this for a while...
| Moved to https://github.com/tonymorris/type-class |