Skip to content

Instantly share code, notes, and snippets.

View schleumer's full-sized avatar
🔝
Writing bad code.

Wesley Schleumer de Góes schleumer

🔝
Writing bad code.
View GitHub Profile
@OlegIlyenko
OlegIlyenko / ApolloTracingExtension.scala
Last active May 15, 2018 20:35
An example of the apollo tracing GraphQL extension with Sangria
import java.time.Instant
import java.time.format.DateTimeFormatter
import java.util.concurrent.ConcurrentLinkedQueue
import sangria.ast._
import sangria.execution._
import sangria.schema.Context
import sangria.marshalling.queryAst._
import sangria.renderer.SchemaRenderer
@vigoo
vigoo / RowCountController.scala
Created February 16, 2014 10:53
Binding table's row count to a label with ScalaFX
package scalafxml.demo.rowcount
import scalafx.Includes._
import scalafxml.core.macros.sfxml
import scalafx.scene.control.{TableColumn, Label, TableView}
import scalafx.event.ActionEvent
import scalafx.application.JFXApp
import scalafxml.core.{DependenciesByType, FXMLView}
import scalafx.scene.Scene
import scalafx.beans.property.StringProperty