Skip to content

Instantly share code, notes, and snippets.

View scalactic's full-sized avatar

scalactic scalactic

  • Apple Inc.
View GitHub Profile
@scalactic
scalactic / setup.css
Created November 14, 2022 19:14
css setup
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@pavel-filatov
pavel-filatov / ParallelProcessing.scala
Created May 12, 2021 08:02
Parallel processing with Scala-Spark
object ParallelProcessing {
val queries: List[(String, String)] = List(
("SELECT * FROM ABC", "output1"),
("SELECT * FROM XYZ", "output2")
)
// Just use parallel collection instead of futures, that's it
queries.par foreach {
case (query, path) =>