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
package com.rr.experiment | |
import org.specs2.ScalaCheck | |
import org.specs2.mutable._ | |
import org.scalacheck._ | |
import scalaz._ | |
import scodec._ |
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
# ================================================================================ | |
# ObjectStorageUploader.py | |
# © Copyright IBM Corporation 2014. | |
# LICENSE: MIT (http://opensource.org/licenses/MIT) | |
# ================================================================================ | |
import argparse | |
import os | |
import math | |
import http.client |
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
object Printer { | |
import scala.reflect.runtime.currentMirror | |
import scala.tools.reflect.ToolBox | |
val toolBox = currentMirror.mkToolBox() | |
def print(s: String) = { | |
val tree = toolBox parse s | |
val typedTree = toolBox typeCheck tree | |
val tpe = typedTree.tpe.widen | |
val result = toolBox eval tree |