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
JSON.stringify( | |
$.map($('.item_content'), | |
(e) => { | |
return {title: $(e).find('.title').text(), | |
url: $(e).find('.original_url').prop('href'), | |
image: $(e).find('.lazy-active').css('background-image'), | |
id: $(e).parent().prop('id')} | |
}) | |
) |
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
JSON.stringify($.map($('.expense .summary .involved'), | |
(e) => { | |
var negative = $(e).find('.you > .negative').text() | |
var positive = $(e).find('.you > .positive').text() | |
var date = $(e).find('.date').prop('title') | |
var isPositive = (negative == "") | |
var final = isPositive?positive:negative | |
var desc = $(e).find('.description').text() | |
return {amount: final, | |
desc: desc.trim(), |
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 org.apache.spark.sql.types._ | |
import cats._ | |
import cats.implicits._ | |
sealed trait ComparationResult | |
case object Validated extends ComparationResult | |
case class Invalid(msg: String) extends ComparationResult | |
def safeGetColumn(dfSchema: StructType,columnName: String) = | |
try{ |