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
var mouseDropS = $('#drop').onAsObservable('drop') | |
var uploadsS = mouseDropS.flatMap(function(e) { | |
var fileList = e.originalEvent.dataTransfer.files | |
var files = range(fileList.length).map(function(i) { return fileList[i] }) | |
return Rx.Observable.fromArray(files.map(function(file) { | |
var subject = new Rx.ReplaySubject(1) | |
var reader = new FileReader() |
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 play.api.libs.json._ | |
import play.api.libs.json.Reads._ | |
import play.api.libs.functional.syntax._ | |
import scala.util.control.Exception._ | |
object Main extends App { | |
case class Person(name: String, height: Double) | |
val goodJson = Json.parse(""" |