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
{ | |
"metadata" : { | |
"name" : "ClasspathTest", | |
"user_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
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
{ | |
"metadata" : { | |
"name" : "Plot graph with D3", | |
"user_save_timestamp" : "2014-12-15T00:55:09.510Z", | |
"auto_save_timestamp" : "2014-12-15T00:50:41.883Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
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.google.appsscript.adwords._ | |
import com.google.appsscript.base.Logger | |
import com.google.appsscript.spreadsheet._ | |
/** | |
* This is an example app for Apps Scaripped using Google Spreadsheet | |
*/ | |
object AppsScarippedMain extends js.JSApp{ | |
def main(): Unit = { | |
val adsIterator = AdWordsApp.ads() |
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.google.appsscript.adwords._ | |
import com.google.appsscript.base.Logger | |
import com.google.appsscript.spreadsheet._ | |
/** | |
* This is an example app for Apps Scaripped using Google Spreadsheet | |
*/ | |
object AppsScarippedMain extends js.JSApp{ | |
def main(): Unit = { | |
val adsIterator = AdWordsApp.ads() |
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 breeze.linalg._ | |
import breeze.numerics._ | |
import scala.annotation.tailrec | |
/** | |
* quadratic programming code: hinge algorithm | |
* find theta to minimize t(theta) * qmat * theta - 2* theta * cvec | |
* subject to amat * theta >= 0 | |
* | |
* qmat must be positive definite, amat must be irredicible | |
* |
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 shapeless._ | |
import ops.hlist.LiftAll | |
import shapeless._ | |
import syntax.singleton._ | |
import shapeless.ops.hlist.ZipWithKeys | |
case class SingletonOf[T, U](value: U) | |
object SingletonOf { | |
implicit def mkSingletonOf[T <: AnyRef](implicit t: T): SingletonOf[T, t.type] = SingletonOf(t) |
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
public class ReactiveTextViewHolder<T> extends ReactiveViewHolder<T> { | |
private TextView label; | |
private T currentItem; | |
public ReactiveTextViewHolder(View itemView) { | |
super(itemView); | |
label = (TextView) itemView.findViewById(android.R.id.text1); | |
} |
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
package shiplis | |
import shapeless._, poly._, ops.hlist._ | |
object MapWith | |
{ | |
object Apply | |
extends Poly2 | |
{ | |
implicit def c[A, B, R, Tail <: HList, F <: Poly2] |
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
[error] java.lang.IllegalArgumentException: wrong number of arguments | |
[error] @unapply[BlockStmt](Array("getStmts", "getComment", "getOrphanComments")) object BlockStmtCompanion | |
[error] ^ | |
[error] one error found |