Skip to content

Instantly share code, notes, and snippets.

View Habitats's full-sized avatar
🚀
What's happening?

Patrick Skjennum Habitats

🚀
What's happening?
View GitHub Profile
case class Field(field: String, value: Any)
case class Fields(fields: List[Field], score: Double, siteId: String, id: String)
def hello: Unit = {
val rdd = sc.textFile("hello.json").map { json =>
import org.json4s.jackson.JsonMethods._
implicit val jsonFormats = DefaultFormats
val fields = parse(json).extract[Fields]
for {
field <- fields.fields if field.field == "body"
@Habitats
Habitats / settings.json
Created March 2, 2021 10:12
Windows Terminal tmux-friendly Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection