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
Full thread dump OpenJDK 64-Bit Server VM (22.0-b10 mixed mode): | |
"pool-9-thread-4" prio=10 tid=0x00007f36bc010000 nid=0x485 waiting for monitor entry [0x00007f36cbffd000] | |
java.lang.Thread.State: BLOCKED (on object monitor) | |
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:46) | |
- waiting to lock <0x000000070badd358> (a xsbt.boot.Locks$GlobalLock) | |
at xsbt.boot.Locks$.apply0(Locks.scala:30) | |
at xsbt.boot.Locks$.apply(Locks.scala:27) | |
at sbt.IvySbt.withDefaultLogger(Ivy.scala:58) | |
at sbt.IvySbt.withIvy(Ivy.scala:99) |
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 VehicleLocations extends EntityTable[Long, VehicleLocation]("vehiclelocation") { | |
def component = column[VehicleComponents.Lookup]("component") | |
def name = column[String ]("name") | |
def location = column[String ]("location") | |
def mapping = component ~ name ~ location <-> (VehicleLocation.apply _, VehicleLocation.unapply _) | |
} | |
object VehicleComponents extends RequestComponentTable[VehicleComponent]("vehiclecomponent") { | |
def locations(k: Option[Long], init: Seq[VehicleLocations.Ent] = null) = |
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
<html> | |
<!-- Usage: | |
file://path/to/responsive.html#<url>,<scalefactor>,<width1>x<height2>,<width2>x<height2>... | |
For livereload, it's recommended to generate | |
<script src="http://127.0.0.1:35729/livereload.js"></script> | |
on your pages, rather than using the browser extension, so that live css reloading can work. | |
--> | |
<head> | |
<style type="text/css"> | |
#iframes { |
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 chavrusa.ivr | |
import Trampoline.{ Done => TDone, More => TMore, Cont => TCont } | |
trait Iteratees[Err] { | |
sealed trait Input[+I] | |
case class El[+I](value: I) extends Input[I] | |
case object Empty extends Input[Nothing] | |
case object EOF extends Input[Nothing] |
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
def wrap(s: String): NodeSeq = if(filter.isEmpty) Text(s) else { | |
val upper = s.toUpperCase | |
@tailrec def loop(idx: Int, agg: NodeSeq): NodeSeq = | |
upper.indexOf(filter, idx) match { | |
case -1 => agg ++ Text(s.substring(idx)) | |
case n => loop( | |
n + filter.length, | |
agg ++ Text(s.substring(idx,n)) ++ <span class="query-match">{ s.substring(n, n+filter.length) }</span> | |
) | |
} |
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
import scala.xml.{Node, NodeSeq} | |
import net.liftweb.common.{Full, Box} | |
import net.liftweb.http.{LiftResponse, NotFoundResponse, Req, S, XhtmlResponse} | |
/** | |
* A request handler that returns html, based on a provided template | |
*/ | |
trait HtmlResponse extends (Req => LiftResponse) { | |
private object OneNode { | |
def unapply(ns: NodeSeq): Option[Node] = ns match { |
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 platinum.sjs | |
import scala.scalajs.js | |
import scala.scalajs.js.Function1 | |
import scala.scalajs.js.JSConverters.JSRichGenTraversableOnce | |
import scala.scalajs.js.typedarray.ArrayBuffer | |
import org.scalajs | |
import org.scalajs.dom | |
import org.scalajs.dom.raw._ |
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 db.migration | |
import java.sql.Connection | |
import org.flywaydb.core.api.migration.jdbc.JdbcMigration | |
import slick.dbio.DBIO | |
import scala.concurrent.duration.Duration | |
import scala.concurrent.{Await, ExecutionContext} |
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
<!DOCTYPE html> | |
<html lang="ja" data-reactid=".631o9zhips" data-react-checksum="-2056593505"> | |
<head data-reactid=".631o9zhips.0"><title data-reactid=".631o9zhips.0.0">Artist Top Tracks (/artist)</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" data-reactid=".631o9zhips.0.1"> | |
<meta http-equiv="Cache-Control" content="no-cache" data-reactid=".631o9zhips.0.2"> | |
<meta http-equiv="Pragma" content="no-cache" data-reactid=".631o9zhips.0.3"> | |
<meta charset="utf8" data-reactid=".631o9zhips.0.4"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" | |
data-reactid=".631o9zhips.0.5"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css" |
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 logic extends App { | |
sealed trait Father | |
class Moore extends Father | |
class Downing extends Father | |
class Hall extends Father | |
class Hood extends Father | |
class Parker extends Father | |
sealed trait Name | |
class Gabrielle extends Name |