This file contains hidden or 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
/* based on comments in https://github.com/sirthias/parboiled2/issues/61 */ | |
case class Parboiled2CsvParser(input: ParserInput, delimeter: String) extends Parser { | |
def DQUOTE = '"' | |
def DELIMITER_TOKEN = rule(capture(delimeter)) | |
def DQUOTE2 = rule("\"\"" ~ push("\"")) | |
def CRLF = rule(capture("\n\r" | "\n")) | |
def NON_CAPTURING_CRLF = rule("\n\r" | "\n") | |
val delims = s"$delimeter\r\n" + DQUOTE |
This file contains hidden or 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 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; | |
/** |
This file contains hidden or 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
#!/bin/sh | |
# one way (older scala version will be installed) | |
# sudo apt-get install scala | |
#2nd way | |
sudo apt-get remove scala-library scala | |
wget www.scala-lang.org/files/archive/scala-2.10.3.deb | |
sudo dpkg -i scala-2.10.3.deb | |
sudo apt-get update |